Skip to content

Commit

Permalink
fix(backend): correct keyword for warning rules
Browse files Browse the repository at this point in the history
  • Loading branch information
sebtiz13 committed Aug 5, 2023
1 parent 5cb6d24 commit 370feb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions packages/backend/lib/configs/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
'func-names': ['error', 'always'],
'guard-for-in': 'error',
'linebreak-style': ['error', 'unix'],
'new-cap': 'warning',
'new-cap': 'warn',
'no-caller': 'error',
'no-catch-shadow': 'error',
'no-console': 'error',
Expand All @@ -25,10 +25,10 @@ module.exports = {
'no-irregular-whitespace': 'error',
'no-labels': 'error',
'no-lone-blocks': 'error',
'no-lonely-if': 'warning',
'no-lonely-if': 'warn',
'no-loop-func': 'error',
'no-multi-spaces': 'warning',
'no-multiple-empty-lines': 'warning',
'no-multi-spaces': 'warn',
'no-multiple-empty-lines': 'warn',
'no-native-reassign': 'error',
'no-nested-ternary': 'error',
'no-new': 'error',
Expand All @@ -42,7 +42,7 @@ module.exports = {
'no-shadow-restricted-names': 'error',
'no-throw-literal': 'error',
'no-undef': 'error',
'no-undef-init': 'warning',
'no-undef-init': 'warn',
'no-unreachable': 'error',
'no-unused-expressions': ['error', { allowShortCircuit: true }],
'no-useless-call': 'error',
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/lib/configs/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ module.exports = {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/type-annotation-spacing': 'warning',
'@typescript-eslint/member-delimiter-style': 'warning',
'@typescript-eslint/type-annotation-spacing': 'warn',
'@typescript-eslint/member-delimiter-style': 'warn',
// Fix for https://github.com/typescript-eslint/typescript-eslint/issues/2483
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
Expand Down

0 comments on commit 370feb6

Please sign in to comment.