diff --git a/projects/eslint-plugin-experience/all.js b/projects/eslint-plugin-experience/all.js index cb41d609..055c5679 100644 --- a/projects/eslint-plugin-experience/all.js +++ b/projects/eslint-plugin-experience/all.js @@ -533,12 +533,14 @@ module.exports = { 'functional/prefer-tacit': 'error', 'functional/readonly-type': 'off', 'functional/type-declaration-immutability': 'off', + 'guard-for-in': 'error', 'import/exports-last': 'error', 'import/first': 'error', 'import/newline-after-import': ['error', {count: 1}], 'import/no-cycle': 'error', 'import/no-deprecated': 'error', 'import/no-duplicates': 'error', + 'import/no-webpack-loader-syntax': 'error', 'lines-around-comment': [ 'error', { @@ -557,7 +559,8 @@ module.exports = { beforeLineComment: false, }, ], - 'max-classes-per-file': ['error', 4], + 'max-classes-per-file': ['error', 3], + 'max-depth': 'error', 'max-nested-callbacks': ['error', 4], 'no-bitwise': 'error', 'no-case-declarations': 'error', @@ -565,6 +568,7 @@ module.exports = { 'no-empty': ['error', {allowEmptyCatch: true}], 'no-implicit-coercion': ['error', {allow: ['!!']}], 'no-irregular-whitespace': 'error', + 'no-loop-func': 'error', 'no-restricted-syntax': [ 'error', { @@ -621,6 +625,7 @@ module.exports = { 'prefer-template': 'error', 'prettier/prettier': 'error', 'promise/catch-or-return': 'error', + 'promise/no-callback-in-promise': 'error', 'promise/param-names': 'error', 'rxjs/no-compat': 'error', 'rxjs/no-connectable': 'error', @@ -868,18 +873,14 @@ module.exports = { 'func-name-matching': 'off', 'func-names': 'off', 'global-require': 'off', - 'guard-for-in': 'off', 'import/extensions': 'off', 'import/no-default-export': 'off', 'import/no-dynamic-require': 'off', 'import/no-extraneous-dependencies': 'off', 'import/no-relative-packages': 'off', 'import/no-unresolved': 'off', - 'import/no-webpack-loader-syntax': 'off', 'import/prefer-default-export': 'off', 'lines-between-class-members': 'off', - 'max-depth': 'off', - 'max-nested-callbacks': 'off', 'max-params': 'off', 'max-statements': 'off', 'no-await-in-loop': 'off', @@ -889,7 +890,6 @@ module.exports = { 'no-dupe-class-members': 'off', 'no-duplicate-imports': 'off', 'no-empty-function': 'off', - 'no-loop-func': 'off', 'no-param-reassign': 'off', 'no-plusplus': 'off', 'no-prototype-builtins': 'off', @@ -905,7 +905,6 @@ module.exports = { 'prefer-destructuring': 'off', 'promise/always-return': 'off', 'promise/catch-or-return': 'off', - 'promise/no-callback-in-promise': 'off', 'promise/no-nesting': 'off', quotes: 'off', 'require-await': 'off',