You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React function-based code is naturally +3 to +8 complexity, and is triggering all over the place, without developers having a viable solution.
Add `overrides` note to help developers not make terrible decisions.
Copy file name to clipboardExpand all lines: index.js
+19-1
Original file line number
Diff line number
Diff line change
@@ -166,7 +166,7 @@ module.exports = {
166
166
'promise/no-return-in-finally': 'warn',
167
167
'promise/valid-params': 'warn',
168
168
169
-
'sonarjs/cognitive-complexity': ["warn",15],
169
+
'sonarjs/cognitive-complexity': ["warn",25],
170
170
'sonarjs/max-switch-cases': ["warn",10],
171
171
'sonarjs/no-all-duplicated-branches': 'warn',
172
172
'sonarjs/no-collapsible-if': 'warn',
@@ -206,4 +206,22 @@ module.exports = {
206
206
207
207
// See eslint-config-tree/.eslintrc.js for example deprecation rules.
208
208
}
209
+
/**
210
+
* @property {object} overrides - Linting overrides for matched files.
211
+
* Sadly, we cannot provide a base `overrides` entry for things like demos, tests, & mocks. Add this with any needed modifications to your own .eslintrc.js files for each project.
0 commit comments