Skip to content

Commit

Permalink
feat(eslint-plugin-experience): add guard-for-in
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Nov 19, 2023
1 parent 5b472e6 commit 767515a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions projects/eslint-plugin-experience/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
{
Expand All @@ -557,14 +559,16 @@ 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',
'no-console': ['error', {allow: ['info', 'assert', 'warn', 'error']}],
'no-empty': ['error', {allowEmptyCatch: true}],
'no-implicit-coercion': ['error', {allow: ['!!']}],
'no-irregular-whitespace': 'error',
'no-loop-func': 'error',
'no-restricted-syntax': [
'error',
{
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit 767515a

Please sign in to comment.