Skip to content

Commit

Permalink
feat: disable sonarjs/no-duplicate-string for test files
Browse files Browse the repository at this point in the history
  • Loading branch information
ktv18 committed Mar 8, 2022
1 parent c1a82f2 commit 0c99c3a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@ module.exports = {
jsx: true,
},
},
overrides: [
{
files: ['*.test.{ts,tsx}'],
rules: {
'sonarjs/no-duplicate-string': 'off',
},
},
],
rules: {
...baseConfig.rules,
'no-console': 'error',
'sonarjs/cognitive-complexity': ['error', 18],
'multiline-comment-style': 'off',
'no-unreachable': 'error'
'no-unreachable': 'error',
},
};

0 comments on commit 0c99c3a

Please sign in to comment.