Skip to content

Commit

Permalink
fix(eslint-config): increase cognitive complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepolischuk committed Mar 20, 2024
1 parent 903cf1e commit 957c7b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-config/js.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-magic-numbers */
/**
* @rushstack/eslint-patch is used to include plugins as dev
* dependencies instead of imposing them as peer dependencies
Expand Down Expand Up @@ -53,11 +54,9 @@ module.exports = {
}
],
'dot-notation': 'error',
/* eslint-disable no-magic-numbers */
'max-depth': ['error', 3],
'max-nested-callbacks': ['error', 3],
'max-params': ['error', 3],
/* eslint-enable no-magic-numbers */
'max-classes-per-file': 'error',
'require-await': 'error',
'new-cap': 'error',
Expand Down Expand Up @@ -203,6 +202,7 @@ module.exports = {
'sonar/stateful-regex': 'error',
'sonar/unused-named-groups': 'error',
'sonar/xpath': 'error',
'sonarjs/cognitive-complexity': ['error', 20],
'security/detect-buffer-noassert': 'error',
'security/detect-child-process': 'error',
'security/detect-disable-mustache-escape': 'error',
Expand Down

0 comments on commit 957c7b2

Please sign in to comment.