refactor(backend): no-unused-vars
This commit is contained in:
parent
c14d6c53da
commit
14e1508d00
37 changed files with 51 additions and 84 deletions
|
@ -28,6 +28,23 @@ export default [
|
|||
reportUnusedInlineConfigs: 'error',
|
||||
},
|
||||
rules: {
|
||||
'no-unused-expressions': 'off',
|
||||
'@typescript-eslint/no-unused-expressions': 'warn',
|
||||
'no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'warn',
|
||||
{
|
||||
'args': 'all',
|
||||
'argsIgnorePattern': '^_',
|
||||
'caughtErrors': 'all',
|
||||
'caughtErrorsIgnorePattern': '^_',
|
||||
'varsIgnorePattern': '^_',
|
||||
'ignoreRestSiblings': true,
|
||||
}
|
||||
],
|
||||
'no-use-before-define': 'off',
|
||||
'@typescript-eslint/no-use-before-define': 'off',
|
||||
|
||||
'no-await-in-loop': 'warn',
|
||||
'no-constructor-return': 'error',
|
||||
'no-duplicate-imports': 'error',
|
||||
|
@ -36,12 +53,8 @@ export default [
|
|||
'no-template-curly-in-string': 'error',
|
||||
'no-unmodified-loop-condition': 'warn',
|
||||
'no-unreachable-loop': 'warn',
|
||||
'no-use-before-define': 'error',
|
||||
'no-useless-assignment': 'error',
|
||||
|
||||
'no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-unused-vars': 'error',
|
||||
|
||||
'arrow-body-style': ['warn', 'as-needed'],
|
||||
'block-scoped-var': 'warn',
|
||||
camelcase: 'warn',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue