Skip to content

Commit 40b4694

Browse files
committed
chore: removing remnants of the sonarjs plugin
1 parent 95f83a9 commit 40b4694

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

index.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,10 @@ module.exports = {
88
'plugin:import/errors',
99
'plugin:import/warnings',
1010
'plugin:you-dont-need-lodash-underscore/compatible',
11-
// 'plugin:sonarjs/recommended', // Temporarily disabling this rule until it gets ESLint 8 support
1211
'prettier',
1312
'prettier/prettier',
1413
],
15-
plugins: [
16-
'eslint-comments',
17-
'import',
18-
'node',
19-
'prettier',
20-
// 'sonarjs',
21-
'unicorn',
22-
],
14+
plugins: ['eslint-comments', 'import', 'node', 'prettier', 'unicorn'],
2315
rules: {
2416
'arrow-body-style': 'off',
2517

@@ -52,11 +44,6 @@ module.exports = {
5244

5345
'prettier/prettier': ['error', prettierConfig],
5446

55-
// 'sonarjs/cognitive-complexity': 'off',
56-
// 'sonarjs/no-collapsible-if': 'off',
57-
// 'sonarjs/no-duplicate-string': 'off',
58-
// 'sonarjs/no-duplicated-branches': 'off',
59-
6047
'unicorn/catch-error-name': ['error', { ignore: ['^(error|err|e)$'] }],
6148
// "unicorn/consistent-function-scoping": "error", // Maybe?
6249
'unicorn/custom-error-definition': 'error',

testing.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,7 @@ module.exports = {
66
'plugin:jest-formatting/recommended',
77
'plugin:testing-library/react',
88
],
9-
plugins: [
10-
'import',
11-
'jest',
12-
'jest-dom',
13-
'node',
14-
// 'sonarjs', // Temporarily disabling this rule until it gets ESLint 8 support
15-
'testing-library',
16-
],
9+
plugins: ['import', 'jest', 'jest-dom', 'node', 'testing-library'],
1710
env: {
1811
'jest/globals': true,
1912
},
@@ -36,7 +29,5 @@ module.exports = {
3629
// having a function be async and not return or await a Promise, we're only running this rule
3730
// for tests where such a case isn't likely to be a thing.
3831
'require-await': 'error',
39-
40-
// 'sonarjs/no-identical-functions': 'off',
4132
},
4233
};

0 commit comments

Comments
 (0)