@wistia/eslint-config 2.8.0 → 2.9.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/.github/workflows/release.yml +1 -1
- package/CHANGELOG.md +6 -0
- package/package.json +16 -16
- package/src/rules/node.mjs +8 -0
- package/test/__snapshots__/javascript.mjs.snap +1 -1
- package/test/__snapshots__/jest.mjs.snap +1 -1
- package/test/__snapshots__/node.mjs.snap +7 -1
- package/test/__snapshots__/react.mjs.snap +12 -1
- package/test/__snapshots__/typescript.mjs.snap +2 -2
- package/test/__snapshots__/vitest.mjs.snap +2 -2
|
@@ -49,7 +49,7 @@ jobs:
|
|
|
49
49
|
echo "NEW_PACKAGE_VERSION=$(yarn changeset status --output=release.json && jq -r '.releases[0].newVersion' release.json && rm release.json)" >> "$GITHUB_ENV"
|
|
50
50
|
|
|
51
51
|
- name: Create Release Pull Request or Publish to npm
|
|
52
|
-
uses: changesets/action@
|
|
52
|
+
uses: changesets/action@63a615b9cd06ba9a3e6d13796c7fbcb080a60a0b # v1.8.0
|
|
53
53
|
id: changesets
|
|
54
54
|
with:
|
|
55
55
|
createGithubReleases: true
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @wistia/eslint-config
|
|
2
2
|
|
|
3
|
+
## 2.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#491](https://github.com/wistia/eslint-config/pull/491) [`8a65e35`](https://github.com/wistia/eslint-config/commit/8a65e35f1fd9544f8c9367efab1b5921eee1fdc7) Thanks [@okize](https://github.com/okize)! - feat: update react rules for new `eslint-plugin-n` version
|
|
8
|
+
|
|
3
9
|
## 2.8.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "Wistia's ESLint configurations",
|
|
5
5
|
"packageManager": "yarn@4.14.1",
|
|
6
6
|
"type": "module",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"test:export": "check-export-map"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@eslint-react/eslint-plugin": "^5.7.
|
|
42
|
-
"@eslint/compat": "^2.0
|
|
41
|
+
"@eslint-react/eslint-plugin": "^5.7.7",
|
|
42
|
+
"@eslint/compat": "^2.1.0",
|
|
43
43
|
"@eslint/js": "^10.0.1",
|
|
44
44
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^8.59.
|
|
46
|
-
"@typescript-eslint/parser": "^8.59.
|
|
47
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^8.59.3",
|
|
46
|
+
"@typescript-eslint/parser": "^8.59.3",
|
|
47
|
+
"@vitest/eslint-plugin": "^1.6.17",
|
|
48
48
|
"confusing-browser-globals": "^1.0.11",
|
|
49
49
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
50
50
|
"eslint-plugin-barrel-files": "^3.0.1",
|
|
@@ -54,30 +54,30 @@
|
|
|
54
54
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
55
55
|
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
56
56
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
57
|
-
"eslint-plugin-n": "^
|
|
58
|
-
"eslint-plugin-no-only-tests": "^3.
|
|
57
|
+
"eslint-plugin-n": "^18.0.1",
|
|
58
|
+
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
59
59
|
"eslint-plugin-playwright": "^2.10.2",
|
|
60
60
|
"eslint-plugin-prettier": "^5.5.5",
|
|
61
|
-
"eslint-plugin-promise": "^7.
|
|
62
|
-
"eslint-plugin-storybook": "^10.3.
|
|
61
|
+
"eslint-plugin-promise": "^7.3.0",
|
|
62
|
+
"eslint-plugin-storybook": "^10.3.6",
|
|
63
63
|
"eslint-plugin-styled-components-a11y": "^2.2.1",
|
|
64
64
|
"eslint-plugin-testing-library": "^7.16.2",
|
|
65
|
-
"globals": "^17.
|
|
66
|
-
"globals-vitest": "^4.1.
|
|
65
|
+
"globals": "^17.6.0",
|
|
66
|
+
"globals-vitest": "^4.1.6"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@changesets/changelog-github": "^0.
|
|
69
|
+
"@changesets/changelog-github": "^0.7.0",
|
|
70
70
|
"@changesets/cli": "^2.31.0",
|
|
71
71
|
"@commitlint/cli": "^21.0.1",
|
|
72
72
|
"@commitlint/config-conventional": "^21.0.1",
|
|
73
73
|
"check-export-map": "^1.3.1",
|
|
74
|
-
"eslint": "^10.
|
|
74
|
+
"eslint": "^10.3.0",
|
|
75
75
|
"glob": "^13.0.6",
|
|
76
76
|
"husky": "^9.1.7",
|
|
77
77
|
"prettier": "^3.8.3",
|
|
78
|
-
"storybook": "^10.3.
|
|
78
|
+
"storybook": "^10.3.6",
|
|
79
79
|
"typescript": "^6.0.3",
|
|
80
|
-
"vitest": "^4.1.
|
|
80
|
+
"vitest": "^4.1.6"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"eslint": ">= 10",
|
package/src/rules/node.mjs
CHANGED
|
@@ -151,6 +151,10 @@ export default {
|
|
|
151
151
|
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/console.md
|
|
152
152
|
'n/prefer-global/console': 'error',
|
|
153
153
|
|
|
154
|
+
// enforce either crypto or require("crypto").webcrypto
|
|
155
|
+
// https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/crypto.md
|
|
156
|
+
'n/prefer-global/crypto': 'error',
|
|
157
|
+
|
|
154
158
|
// enforce either process or require("process")
|
|
155
159
|
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/process.md
|
|
156
160
|
'n/prefer-global/process': 'error',
|
|
@@ -163,6 +167,10 @@ export default {
|
|
|
163
167
|
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/text-encoder.md
|
|
164
168
|
'n/prefer-global/text-encoder': 'error',
|
|
165
169
|
|
|
170
|
+
// enforce either global timers or require("timers")
|
|
171
|
+
// https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/timers.md
|
|
172
|
+
'n/prefer-global/timers': 'error',
|
|
173
|
+
|
|
166
174
|
// enforce either URLSearchParams or require("url").URLSearchParams
|
|
167
175
|
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/url-search-params.md
|
|
168
176
|
'n/prefer-global/url-search-params': 'error',
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
},
|
|
98
98
|
"plugins": [
|
|
99
99
|
"@",
|
|
100
|
-
"n:eslint-plugin-n@
|
|
100
|
+
"n:eslint-plugin-n@18.0.1",
|
|
101
101
|
"import-x:eslint-plugin-import-x@4.16.2",
|
|
102
102
|
],
|
|
103
103
|
"rules": {
|
|
@@ -209,6 +209,9 @@
|
|
|
209
209
|
"n/prefer-global/console": [
|
|
210
210
|
2,
|
|
211
211
|
],
|
|
212
|
+
"n/prefer-global/crypto": [
|
|
213
|
+
2,
|
|
214
|
+
],
|
|
212
215
|
"n/prefer-global/process": [
|
|
213
216
|
2,
|
|
214
217
|
],
|
|
@@ -218,6 +221,9 @@
|
|
|
218
221
|
"n/prefer-global/text-encoder": [
|
|
219
222
|
2,
|
|
220
223
|
],
|
|
224
|
+
"n/prefer-global/timers": [
|
|
225
|
+
2,
|
|
226
|
+
],
|
|
221
227
|
"n/prefer-global/url": [
|
|
222
228
|
2,
|
|
223
229
|
],
|
|
@@ -906,8 +906,12 @@
|
|
|
906
906
|
"XRBoundedReferenceSpace": false,
|
|
907
907
|
"XRCPUDepthInformation": false,
|
|
908
908
|
"XRCamera": false,
|
|
909
|
+
"XRCompositionLayer": false,
|
|
910
|
+
"XRCubeLayer": false,
|
|
911
|
+
"XRCylinderLayer": false,
|
|
909
912
|
"XRDOMOverlayState": false,
|
|
910
913
|
"XRDepthInformation": false,
|
|
914
|
+
"XREquirectLayer": false,
|
|
911
915
|
"XRFrame": false,
|
|
912
916
|
"XRHand": false,
|
|
913
917
|
"XRHitTestResult": false,
|
|
@@ -919,9 +923,14 @@
|
|
|
919
923
|
"XRJointPose": false,
|
|
920
924
|
"XRJointSpace": false,
|
|
921
925
|
"XRLayer": false,
|
|
926
|
+
"XRLayerEvent": false,
|
|
922
927
|
"XRLightEstimate": false,
|
|
923
928
|
"XRLightProbe": false,
|
|
929
|
+
"XRPlane": false,
|
|
930
|
+
"XRPlaneSet": false,
|
|
924
931
|
"XRPose": false,
|
|
932
|
+
"XRProjectionLayer": false,
|
|
933
|
+
"XRQuadLayer": false,
|
|
925
934
|
"XRRay": false,
|
|
926
935
|
"XRReferenceSpace": false,
|
|
927
936
|
"XRReferenceSpaceEvent": false,
|
|
@@ -930,6 +939,7 @@
|
|
|
930
939
|
"XRSession": false,
|
|
931
940
|
"XRSessionEvent": false,
|
|
932
941
|
"XRSpace": false,
|
|
942
|
+
"XRSubImage": false,
|
|
933
943
|
"XRSystem": false,
|
|
934
944
|
"XRTransientInputHitTestResult": false,
|
|
935
945
|
"XRTransientInputHitTestSource": false,
|
|
@@ -940,6 +950,7 @@
|
|
|
940
950
|
"XRWebGLBinding": false,
|
|
941
951
|
"XRWebGLDepthInformation": false,
|
|
942
952
|
"XRWebGLLayer": false,
|
|
953
|
+
"XRWebGLSubImage": false,
|
|
943
954
|
"XSLTProcessor": false,
|
|
944
955
|
"addEventListener": false,
|
|
945
956
|
"ai": false,
|
|
@@ -1193,7 +1204,7 @@
|
|
|
1193
1204
|
},
|
|
1194
1205
|
"plugins": [
|
|
1195
1206
|
"@",
|
|
1196
|
-
"@eslint-react:@eslint-react/eslint-plugin@5.7.
|
|
1207
|
+
"@eslint-react:@eslint-react/eslint-plugin@5.7.7",
|
|
1197
1208
|
"jsx-a11y:eslint-plugin-jsx-a11y@6.10.2",
|
|
1198
1209
|
],
|
|
1199
1210
|
"rules": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"undefined": false,
|
|
65
65
|
"unescape": false,
|
|
66
66
|
},
|
|
67
|
-
"parser": "typescript-eslint/parser@8.59.
|
|
67
|
+
"parser": "typescript-eslint/parser@8.59.3",
|
|
68
68
|
"parserOptions": {
|
|
69
69
|
"ecmaVersion": 2024,
|
|
70
70
|
"project": "./tsconfig.json",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"plugins": [
|
|
79
79
|
"@",
|
|
80
80
|
"@stylistic:@stylistic/eslint-plugin@5.10.0",
|
|
81
|
-
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.59.
|
|
81
|
+
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.59.3",
|
|
82
82
|
"barrel-files:eslint-plugin-barrel-files@3.0.1",
|
|
83
83
|
"filenames",
|
|
84
84
|
"import-x:eslint-plugin-import-x@4.16.2",
|