@shelf/eslint-config 2.14.0 → 2.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/frontend-typescript.js +13 -0
- package/frontend.js +9 -1
- package/package.json +15 -15
package/frontend-typescript.js
CHANGED
|
@@ -46,5 +46,18 @@ module.exports = {
|
|
|
46
46
|
files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
|
|
47
47
|
extends: ['plugin:testing-library/react'],
|
|
48
48
|
},
|
|
49
|
+
{
|
|
50
|
+
files: ['*.test.{ts,tsx,js}', 'mocks.ts', 'mock.js'],
|
|
51
|
+
rules: {
|
|
52
|
+
camelcase: 'off',
|
|
53
|
+
'sonarjs/no-duplicate-string': 'off',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
files: ['*.styled.{ts,tsx}'],
|
|
58
|
+
rules: {
|
|
59
|
+
'sonarjs/no-nested-template-literals': 'off',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
49
62
|
],
|
|
50
63
|
};
|
package/frontend.js
CHANGED
|
@@ -20,11 +20,19 @@ module.exports = {
|
|
|
20
20
|
jsx: true,
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
|
+
overrides: [
|
|
24
|
+
{
|
|
25
|
+
files: ['*.test.{ts,tsx}'],
|
|
26
|
+
rules: {
|
|
27
|
+
'sonarjs/no-duplicate-string': 'off',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
],
|
|
23
31
|
rules: {
|
|
24
32
|
...baseConfig.rules,
|
|
25
33
|
'no-console': 'error',
|
|
26
34
|
'sonarjs/cognitive-complexity': ['error', 18],
|
|
27
35
|
'multiline-comment-style': 'off',
|
|
28
|
-
'no-unreachable': 'error'
|
|
36
|
+
'no-unreachable': 'error',
|
|
29
37
|
},
|
|
30
38
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shelf/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.1",
|
|
4
4
|
"description": "ESLint Config for Shelf Projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "shelfio/eslint-config",
|
|
@@ -33,10 +33,18 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/eslint-parser": "7.17.0",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
37
|
-
"@typescript-eslint/parser": "5.
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "5.15.0",
|
|
37
|
+
"@typescript-eslint/parser": "5.15.0",
|
|
38
38
|
"eslint-config-next": "11.1.2",
|
|
39
|
-
"eslint-config-prettier": "8.5.0"
|
|
39
|
+
"eslint-config-prettier": "8.5.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"husky": "7.0.4",
|
|
43
|
+
"lint-staged": "12.3.7",
|
|
44
|
+
"prettier": "2.5.1"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"eslint": "7.x || 8.x",
|
|
40
48
|
"eslint-plugin-babel": "5.3.1",
|
|
41
49
|
"eslint-plugin-import": "2.25.4",
|
|
42
50
|
"eslint-plugin-jest": "26.1.1",
|
|
@@ -44,19 +52,11 @@
|
|
|
44
52
|
"eslint-plugin-json-format": "2.0.1",
|
|
45
53
|
"eslint-plugin-jsx": "0.1.0",
|
|
46
54
|
"eslint-plugin-prettier": "4.0.0",
|
|
47
|
-
"eslint-plugin-react": "7.29.
|
|
55
|
+
"eslint-plugin-react": "7.29.4",
|
|
48
56
|
"eslint-plugin-react-hooks": "4.3.0",
|
|
49
57
|
"eslint-plugin-sonarjs": "0.12.0",
|
|
50
|
-
"eslint-plugin-testing-library": "5.0
|
|
51
|
-
"eslint-plugin-vue": "8.5.0"
|
|
52
|
-
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"husky": "7.0.4",
|
|
55
|
-
"lint-staged": "12.3.5",
|
|
56
|
-
"prettier": "2.5.1"
|
|
57
|
-
},
|
|
58
|
-
"peerDependencies": {
|
|
59
|
-
"eslint": "7.x || 8.x",
|
|
58
|
+
"eslint-plugin-testing-library": "5.1.0",
|
|
59
|
+
"eslint-plugin-vue": "8.5.0",
|
|
60
60
|
"prettier": "2.x"
|
|
61
61
|
},
|
|
62
62
|
"lint-staged": {
|