@wistia/eslint-config 0.38.0 → 0.38.2
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/eslint-config",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.2",
|
|
4
4
|
"description": "Wistia's ESLint configurations",
|
|
5
5
|
"packageManager": "yarn@4.5.3",
|
|
6
6
|
"main": "react.js",
|
|
@@ -41,13 +41,39 @@
|
|
|
41
41
|
"test:export": "check-export-map",
|
|
42
42
|
"test:stylelint": "stylelint --print-config ./test/index.mjs"
|
|
43
43
|
},
|
|
44
|
+
"resolutions": {
|
|
45
|
+
"postcss": ">=8.4.38"
|
|
46
|
+
},
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
49
|
+
},
|
|
50
|
+
"repository": {
|
|
51
|
+
"type": "git",
|
|
52
|
+
"url": "git+https://github.com/wistia/eslint-config.git"
|
|
53
|
+
},
|
|
54
|
+
"bugs": {
|
|
55
|
+
"url": "https://github.com/wistia/eslint-config/issues"
|
|
56
|
+
},
|
|
57
|
+
"homepage": "https://github.com/wistia/eslint-config#readme",
|
|
58
|
+
"author": "Wistia Engineering",
|
|
59
|
+
"license": "UNLICENSED",
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@changesets/changelog-github": "^0.5.0",
|
|
62
|
+
"@changesets/cli": "^2.27.11",
|
|
63
|
+
"@commitlint/cli": "^19.6.1",
|
|
64
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
65
|
+
"check-export-map": "^1.3.1",
|
|
66
|
+
"husky": "^9.1.7",
|
|
67
|
+
"typescript": "^5.7.3",
|
|
68
|
+
"vitest": "^2.1.8"
|
|
69
|
+
},
|
|
44
70
|
"dependencies": {
|
|
45
71
|
"@babel/core": "^7.26.0",
|
|
46
|
-
"@babel/eslint-parser": "^7.
|
|
72
|
+
"@babel/eslint-parser": "^7.26.5",
|
|
47
73
|
"@babel/preset-react": "^7.26.3",
|
|
48
|
-
"@rushstack/eslint-patch": "^1.10.
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
50
|
-
"@typescript-eslint/parser": "^8.
|
|
74
|
+
"@rushstack/eslint-patch": "^1.10.5",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "^8.19.1",
|
|
76
|
+
"@typescript-eslint/parser": "^8.19.1",
|
|
51
77
|
"confusing-browser-globals": "^1.0.11",
|
|
52
78
|
"eslint": "^8.57.1",
|
|
53
79
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -57,26 +83,26 @@
|
|
|
57
83
|
"eslint-plugin-filenames": "^1.3.2",
|
|
58
84
|
"eslint-plugin-fp": "^2.3.0",
|
|
59
85
|
"eslint-plugin-import": "^2.31.0",
|
|
60
|
-
"eslint-plugin-jest": "^28.
|
|
86
|
+
"eslint-plugin-jest": "^28.10.0",
|
|
61
87
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
62
88
|
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
63
89
|
"eslint-plugin-jsdoc": "^50.6.1",
|
|
64
90
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
65
|
-
"eslint-plugin-n": "^17.15.
|
|
91
|
+
"eslint-plugin-n": "^17.15.1",
|
|
66
92
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
67
93
|
"eslint-plugin-no-snapshot-testing": "^1.0.61",
|
|
68
94
|
"eslint-plugin-no-typeof-window-undefined": "^0.0.2",
|
|
69
95
|
"eslint-plugin-observers": "^1.0.1",
|
|
70
96
|
"eslint-plugin-prettier": "^5.2.1",
|
|
71
97
|
"eslint-plugin-promise": "^7.2.1",
|
|
72
|
-
"eslint-plugin-react": "^7.37.
|
|
73
|
-
"eslint-plugin-react-compiler": "19.0.0-beta-
|
|
98
|
+
"eslint-plugin-react": "^7.37.4",
|
|
99
|
+
"eslint-plugin-react-compiler": "^19.0.0-beta-e552027-20250112",
|
|
74
100
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
75
101
|
"eslint-plugin-react-hooks-ssr": "^0.1.5",
|
|
76
102
|
"eslint-plugin-sonarjs": "^1.0.4",
|
|
77
103
|
"eslint-plugin-ssr-friendly": "^1.3.0",
|
|
78
|
-
"eslint-plugin-storybook": "^0.11.
|
|
79
|
-
"eslint-plugin-styled-components-a11y": "^2.
|
|
104
|
+
"eslint-plugin-storybook": "^0.11.2",
|
|
105
|
+
"eslint-plugin-styled-components-a11y": "^2.2.0",
|
|
80
106
|
"eslint-plugin-testing-library": "^6.5.0",
|
|
81
107
|
"eslint-plugin-vitest": "^0.5.4",
|
|
82
108
|
"eslint-plugin-vitest-globals": "^1.5.0",
|
|
@@ -84,35 +110,9 @@
|
|
|
84
110
|
"postcss-scss": "^4.0.9",
|
|
85
111
|
"postcss-styled-syntax": "^0.7.0",
|
|
86
112
|
"prettier": "^3.4.2",
|
|
87
|
-
"stylelint": "^16.
|
|
113
|
+
"stylelint": "^16.13.0",
|
|
88
114
|
"stylelint-declaration-block-no-ignored-properties": "^2.8.0",
|
|
89
115
|
"stylelint-prettier": "^5.0.2",
|
|
90
116
|
"stylelint-scss": "^6.10.0"
|
|
91
|
-
}
|
|
92
|
-
"devDependencies": {
|
|
93
|
-
"@changesets/changelog-github": "^0.5.0",
|
|
94
|
-
"@changesets/cli": "^2.27.10",
|
|
95
|
-
"@commitlint/cli": "^19.6.0",
|
|
96
|
-
"@commitlint/config-conventional": "^19.6.0",
|
|
97
|
-
"check-export-map": "^1.3.1",
|
|
98
|
-
"husky": "^9.1.7",
|
|
99
|
-
"typescript": "^5.7.2",
|
|
100
|
-
"vitest": "^2.1.8"
|
|
101
|
-
},
|
|
102
|
-
"resolutions": {
|
|
103
|
-
"postcss": ">=8.4.38"
|
|
104
|
-
},
|
|
105
|
-
"engines": {
|
|
106
|
-
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
107
|
-
},
|
|
108
|
-
"repository": {
|
|
109
|
-
"type": "git",
|
|
110
|
-
"url": "git+https://github.com/wistia/eslint-config.git"
|
|
111
|
-
},
|
|
112
|
-
"bugs": {
|
|
113
|
-
"url": "https://github.com/wistia/eslint-config/issues"
|
|
114
|
-
},
|
|
115
|
-
"homepage": "https://github.com/wistia/eslint-config#readme",
|
|
116
|
-
"author": "Wistia Engineering",
|
|
117
|
-
"license": "UNLICENSED"
|
|
117
|
+
}
|
|
118
118
|
}
|
package/rules/eslint/imports.cjs
CHANGED
|
@@ -7,7 +7,7 @@ module.exports = {
|
|
|
7
7
|
extensions: ['.js', '.mjs', '.cjs', '.json'],
|
|
8
8
|
},
|
|
9
9
|
},
|
|
10
|
-
'import/extensions': ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.cjs'],
|
|
10
|
+
'import/extensions': ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.cjs', '.mts'],
|
|
11
11
|
'import/core-modules': [],
|
|
12
12
|
'import/ignore': ['node_modules', '\\.(coffee|scss|css|less|svg|json)$'],
|
|
13
13
|
},
|
|
@@ -35,6 +35,10 @@ module.exports = {
|
|
|
35
35
|
// https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/hierarchy-separator.md
|
|
36
36
|
'storybook/hierarchy-separator': 'error',
|
|
37
37
|
|
|
38
|
+
// Meta should only have inline properties
|
|
39
|
+
// https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/meta-inline-properties.md
|
|
40
|
+
'storybook/meta-inline-properties': 'error',
|
|
41
|
+
|
|
38
42
|
// A story should not have a redundant name property
|
|
39
43
|
// https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/no-redundant-story-name.md
|
|
40
44
|
'storybook/no-redundant-story-name': 'error',
|
|
@@ -24,7 +24,7 @@ module.exports = {
|
|
|
24
24
|
'import/parsers': {
|
|
25
25
|
// omit `.d.ts` because 1) TypeScript compilation already confirms that types are resolved, and
|
|
26
26
|
// 2) it would mask an unresolved `.ts`/`.tsx`/`.js`/`.jsx` implementation.
|
|
27
|
-
'@typescript-eslint/parser': ['.ts', '.tsx'],
|
|
27
|
+
'@typescript-eslint/parser': ['.ts', '.tsx', '.mts'],
|
|
28
28
|
},
|
|
29
29
|
|
|
30
30
|
'import/resolver': {
|