@wistia/eslint-config 0.32.2 → 0.33.0
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/eslint-config",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"packageManager": "yarn@4.1.
|
|
3
|
+
"version": "0.33.0",
|
|
4
|
+
"packageManager": "yarn@4.1.1",
|
|
5
5
|
"description": "Wistia's ESLint configurations",
|
|
6
6
|
"main": "react.js",
|
|
7
7
|
"files": [
|
|
@@ -40,26 +40,24 @@
|
|
|
40
40
|
"test:stylelint": "stylelint --print-config ./test/index.mjs"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@babel/core": "^7.
|
|
44
|
-
"@babel/eslint-parser": "^7.
|
|
45
|
-
"@babel/preset-react": "^7.
|
|
46
|
-
"@rushstack/eslint-patch": "^1.
|
|
47
|
-
"@
|
|
48
|
-
"@typescript-eslint/
|
|
49
|
-
"@typescript-eslint/parser": "^7.1.0",
|
|
43
|
+
"@babel/core": "^7.24.5",
|
|
44
|
+
"@babel/eslint-parser": "^7.24.5",
|
|
45
|
+
"@babel/preset-react": "^7.24.1",
|
|
46
|
+
"@rushstack/eslint-patch": "^1.10.2",
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^7.9.0",
|
|
48
|
+
"@typescript-eslint/parser": "^7.9.0",
|
|
50
49
|
"confusing-browser-globals": "^1.0.11",
|
|
51
50
|
"eslint": "^8.57.0",
|
|
52
51
|
"eslint-config-prettier": "^9.1.0",
|
|
53
52
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
54
|
-
"eslint-plugin-
|
|
55
|
-
"eslint-plugin-cypress": "^2.15.1",
|
|
53
|
+
"eslint-plugin-cypress": "^3.2.0",
|
|
56
54
|
"eslint-plugin-filenames": "^1.3.2",
|
|
57
55
|
"eslint-plugin-fp": "^2.3.0",
|
|
58
56
|
"eslint-plugin-import": "^2.29.1",
|
|
59
|
-
"eslint-plugin-jest": "^
|
|
60
|
-
"eslint-plugin-jest-dom": "^5.
|
|
57
|
+
"eslint-plugin-jest": "^28.5.0",
|
|
58
|
+
"eslint-plugin-jest-dom": "^5.4.0",
|
|
61
59
|
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
62
|
-
"eslint-plugin-jsdoc": "^48.2.
|
|
60
|
+
"eslint-plugin-jsdoc": "^48.2.5",
|
|
63
61
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
64
62
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
65
63
|
"eslint-plugin-no-snapshot-testing": "^1.0.61",
|
|
@@ -68,32 +66,32 @@
|
|
|
68
66
|
"eslint-plugin-observers": "^1.0.1",
|
|
69
67
|
"eslint-plugin-prettier": "^5.1.3",
|
|
70
68
|
"eslint-plugin-promise": "^6.1.1",
|
|
71
|
-
"eslint-plugin-react": "^7.
|
|
72
|
-
"eslint-plugin-react-hooks": "^4.6.
|
|
69
|
+
"eslint-plugin-react": "^7.34.1",
|
|
70
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
73
71
|
"eslint-plugin-react-hooks-ssr": "^0.1.5",
|
|
74
|
-
"eslint-plugin-sonarjs": "^0.
|
|
72
|
+
"eslint-plugin-sonarjs": "^1.0.3",
|
|
75
73
|
"eslint-plugin-ssr-friendly": "^1.3.0",
|
|
76
74
|
"eslint-plugin-storybook": "^0.8.0",
|
|
77
75
|
"eslint-plugin-styled-components-a11y": "^2.1.32",
|
|
78
|
-
"eslint-plugin-testing-library": "^6.2.
|
|
79
|
-
"eslint-plugin-vitest": "^0.
|
|
80
|
-
"eslint-plugin-vitest-globals": "^1.
|
|
81
|
-
"postcss": "^8.4.
|
|
76
|
+
"eslint-plugin-testing-library": "^6.2.2",
|
|
77
|
+
"eslint-plugin-vitest": "^0.5.4",
|
|
78
|
+
"eslint-plugin-vitest-globals": "^1.5.0",
|
|
79
|
+
"postcss": "^8.4.38",
|
|
82
80
|
"postcss-scss": "^4.0.9",
|
|
83
81
|
"postcss-styled-syntax": "^0.6.4",
|
|
84
82
|
"prettier": "^3.2.5",
|
|
85
|
-
"stylelint": "^16.
|
|
83
|
+
"stylelint": "^16.5.0",
|
|
86
84
|
"stylelint-declaration-block-no-ignored-properties": "^2.8.0",
|
|
87
85
|
"stylelint-prettier": "^5.0.0",
|
|
88
|
-
"stylelint-scss": "^6.
|
|
86
|
+
"stylelint-scss": "^6.3.0"
|
|
89
87
|
},
|
|
90
88
|
"devDependencies": {
|
|
91
|
-
"@commitlint/cli": "^19.
|
|
92
|
-
"@commitlint/config-conventional": "^19.
|
|
89
|
+
"@commitlint/cli": "^19.3.0",
|
|
90
|
+
"@commitlint/config-conventional": "^19.2.2",
|
|
93
91
|
"check-export-map": "^1.3.1",
|
|
94
92
|
"husky": "^9.0.11",
|
|
95
|
-
"typescript": "^5.
|
|
96
|
-
"vitest": "^1.
|
|
93
|
+
"typescript": "^5.4.5",
|
|
94
|
+
"vitest": "^1.6.0"
|
|
97
95
|
},
|
|
98
96
|
"engines": {
|
|
99
97
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
package/rules/eslint/sonar.cjs
CHANGED
|
@@ -51,7 +51,7 @@ module.exports = {
|
|
|
51
51
|
|
|
52
52
|
// Cognitive Complexity of functions should not be too high
|
|
53
53
|
// https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/cognitive-complexity.md
|
|
54
|
-
'sonarjs/cognitive-complexity': 'error',
|
|
54
|
+
'sonarjs/cognitive-complexity': ['error', 20],
|
|
55
55
|
|
|
56
56
|
// "if ... else if" constructs should end with "else" clauses
|
|
57
57
|
// https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/elseif-without-else.md
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// only add styled-components rules
|
|
2
|
-
// see: https://github.com/tinloof/eslint-plugin-better-styled-components#supported-rules
|
|
3
2
|
// see: https://github.com/brendanmorrell/eslint-plugin-styled-components-a11y
|
|
4
3
|
|
|
5
4
|
module.exports = {
|
|
6
|
-
plugins: ['eslint-plugin-
|
|
5
|
+
plugins: ['eslint-plugin-styled-components-a11y'],
|
|
7
6
|
|
|
8
7
|
parserOptions: {
|
|
9
8
|
ecmaFeatures: {
|
|
@@ -12,9 +11,6 @@ module.exports = {
|
|
|
12
11
|
},
|
|
13
12
|
|
|
14
13
|
rules: {
|
|
15
|
-
// sort styled-component properties alphabetically
|
|
16
|
-
'better-styled-components/sort-declarations-alphabetically': 'error',
|
|
17
|
-
|
|
18
14
|
// plugin does not provide definitions
|
|
19
15
|
'styled-components-a11y/accessible-emoji': 'error',
|
|
20
16
|
'styled-components-a11y/alt-text': 'error',
|