Skip to content

Commit 25a2601

Browse files
update eslint rules
1 parent 9311349 commit 25a2601

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

react/eslint.config.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,19 @@ export default [
9191
'security/detect-eval-with-expression': 'warn',
9292
'security/detect-non-literal-fs-filename': 'warn',
9393
'security/detect-non-literal-require': 'warn',
94+
complexity: ['warn', { max: 5 }],
95+
},
96+
},
97+
{
98+
files: ['src/serviceWorker.js'],
99+
rules: {
100+
complexity: 'off',
101+
},
102+
},
103+
{
104+
files: ['src/services/Usage.test.js', 'src/utils/SortUtils.js'],
105+
rules: {
106+
'security/detect-object-injection': 'off',
94107
},
95108
},
96109
];

0 commit comments

Comments
 (0)