Skip to content

Commit

Permalink
Some fine tuning-up of rules
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed Nov 12, 2021
1 parent f6a9023 commit ebffc7a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions eslint-config-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ module.exports = {
'allowCallbacks': 'always',
'allowConditionalTypes': 'always',
'allowConstructors': 'always',
'allowGenerics': 'always',
'allowLiterals': 'in-unions-and-intersections',
'allowMappedTypes': 'always',
'allowTupleTypes': 'always'
Expand Down Expand Up @@ -156,7 +157,6 @@ module.exports = {
'dot-notation': 'off',
'func-call-spacing': 'off',
'indent': 'off',
'init-declarations': 'off',
'keyword-spacing': 'off',
'lines-between-class-members': 'off',
'no-array-constructor': 'off',
Expand Down Expand Up @@ -189,7 +189,6 @@ module.exports = {
'@typescript-eslint/dot-notation': 'error',
'@typescript-eslint/func-call-spacing': 'error',
'@typescript-eslint/indent': 'error',
'@typescript-eslint/init-declarations': ['error', 'always'],
'@typescript-eslint/keyword-spacing': 'error',
'@typescript-eslint/lines-between-class-members': 'error',
'@typescript-eslint/no-array-constructor': 'error',
Expand All @@ -213,6 +212,8 @@ module.exports = {
'@typescript-eslint/no-loop-func': 'error',
'@typescript-eslint/no-loss-of-precision': 'warn',
'@typescript-eslint/no-magic-numbers': ['warn', {
'ignoreArrayIndexes': true,
'ignoreDefaultValues': true,
'ignoreEnums': true,
'ignoreNumericLiteralTypes': true,
'ignoreReadonlyClassProperties': true
Expand Down Expand Up @@ -374,7 +375,6 @@ module.exports = {
'yoda': ['error', 'never', {
'exceptRange': true
}],
'init-declarations': ['error', 'always'],
'no-delete-var': 'error',
'no-shadow': 'error',
'no-shadow-restricted-names': 'error',
Expand Down Expand Up @@ -450,7 +450,10 @@ module.exports = {
}
}],
'object-curly-spacing': ['error', 'always'],
'one-var': 'error',
'one-var': ['error', {
'initialized': 'never',
'uninitialized': 'consecutive'
}],
'operator-assignment': 'error',
'padded-blocks': ['error', 'never'],
'prefer-exponentiation-operator': 'error',
Expand Down

0 comments on commit ebffc7a

Please sign in to comment.