mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 02:11:57 +00:00
Add a few eslint rules to enforce a stricter style
This commit is contained in:
parent
e0b7caf4f0
commit
cb70e1681c
|
@ -31,6 +31,22 @@ export default [
|
|||
// 'no-shadow': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
||||
// Custom vue rules
|
||||
|
||||
'vue/block-lang': [
|
||||
'error',
|
||||
{
|
||||
script: {
|
||||
lang: 'ts',
|
||||
},
|
||||
},
|
||||
],
|
||||
'vue/component-api-style': ['error'],
|
||||
'vue/component-name-in-template-casing': [
|
||||
'error',
|
||||
'PascalCase',
|
||||
{ registeredComponentsOnly: true },
|
||||
],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue
Block a user