Update eslint config.
This commit is contained in:
parent
a89a41520c
commit
f21cce9944
@ -25,6 +25,14 @@ const customTypescriptConfig = {
|
||||
rules: {
|
||||
'linebreak-style': ['error', 'unix'],
|
||||
quotes: ['error', 'single', { avoidEscape: true }],
|
||||
semi: ['error', 'never'],
|
||||
'@typescript-eslint/no-unused-vars': ['error', {
|
||||
'args': 'all',
|
||||
'argsIgnorePattern': '^_',
|
||||
'caughtErrorsIgnorePattern': '^_',
|
||||
'destructuredArrayIgnorePattern': '^_',
|
||||
'varsIgnorePattern': '^_',
|
||||
}],
|
||||
},
|
||||
}
|
||||
|
||||
@ -51,4 +59,10 @@ export default [
|
||||
eslintJs.configs.recommended,
|
||||
...recommendedTypeScriptConfigs,
|
||||
customTypescriptConfig,
|
||||
{
|
||||
rules: {
|
||||
quotes: ['error', 'single', { avoidEscape: true }],
|
||||
semi: ['error', 'never'],
|
||||
},
|
||||
},
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user