@wistia/oxlint-config 0.7.0 → 0.7.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 +10 -10
- package/rules/node.mjs +1 -2
- package/rules/vitest.mjs +8 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/oxlint-config",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Wistia's Oxlint configurations",
|
|
5
5
|
"packageManager": "yarn@4.14.1",
|
|
6
6
|
"type": "module",
|
|
@@ -54,29 +54,29 @@
|
|
|
54
54
|
"oxlint-tsgolint": ">= 1.0.0"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@eslint-react/eslint-plugin": "^5.7.
|
|
57
|
+
"@eslint-react/eslint-plugin": "^5.7.6",
|
|
58
58
|
"@vitest/eslint-plugin": "^1.6.16",
|
|
59
59
|
"confusing-browser-globals": "^1.0.11",
|
|
60
60
|
"eslint-plugin-barrel-files": "^3.0.1",
|
|
61
61
|
"eslint-plugin-import-x": "^4.16.2",
|
|
62
62
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
63
|
-
"eslint-plugin-n": "^
|
|
64
|
-
"eslint-plugin-no-only-tests": "^3.
|
|
63
|
+
"eslint-plugin-n": "^18.0.1",
|
|
64
|
+
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
65
65
|
"eslint-plugin-playwright": "^2.10.2",
|
|
66
|
-
"eslint-plugin-storybook": "^10.3.
|
|
66
|
+
"eslint-plugin-storybook": "^10.3.6",
|
|
67
67
|
"eslint-plugin-styled-components": "^0.0.0",
|
|
68
68
|
"eslint-plugin-styled-components-a11y": "^2.2.1",
|
|
69
69
|
"eslint-plugin-testing-library": "^7.16.2",
|
|
70
70
|
"typescript": "^6.0.3"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@changesets/changelog-github": "^0.
|
|
73
|
+
"@changesets/changelog-github": "^0.7.0",
|
|
74
74
|
"@changesets/cli": "^2.31.0",
|
|
75
|
-
"eslint": "^10.
|
|
76
|
-
"oxfmt": "^0.
|
|
77
|
-
"oxlint": "^1.
|
|
75
|
+
"eslint": "^10.3.0",
|
|
76
|
+
"oxfmt": "^0.48.0",
|
|
77
|
+
"oxlint": "^1.64.0",
|
|
78
78
|
"oxlint-tsgolint": "^0.22.1",
|
|
79
|
-
"storybook": "^10.3.
|
|
79
|
+
"storybook": "^10.3.6",
|
|
80
80
|
"vitest": "^4.1.5"
|
|
81
81
|
},
|
|
82
82
|
"engines": {
|
package/rules/node.mjs
CHANGED
|
@@ -182,8 +182,7 @@ export const nodeRules = {
|
|
|
182
182
|
|
|
183
183
|
// Disallow the use of process.exit()
|
|
184
184
|
// https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-process-exit.md
|
|
185
|
-
|
|
186
|
-
'n/no-process-exit': 'off',
|
|
185
|
+
'n/no-process-exit': 'error',
|
|
187
186
|
|
|
188
187
|
// Disallow synchronous methods
|
|
189
188
|
// https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-sync.md
|
package/rules/vitest.mjs
CHANGED
|
@@ -291,10 +291,15 @@ export const vitestRules = {
|
|
|
291
291
|
// https://oxc.rs/docs/guide/usage/linter/rules/jest/valid-expect.html
|
|
292
292
|
'jest/valid-expect': 'error',
|
|
293
293
|
|
|
294
|
-
// Enforce valid titles
|
|
295
|
-
// https://oxc.rs/docs/guide/usage/linter/rules/
|
|
294
|
+
// Enforce valid titles (vitest-specific duplicate of jest/valid-title)
|
|
295
|
+
// https://oxc.rs/docs/guide/usage/linter/rules/vitest/valid-title.html
|
|
296
296
|
// decision: `allowArguments` avoids conflict with `prefer-describe-function-title` rule, which is enabled
|
|
297
|
-
'
|
|
297
|
+
'vitest/valid-title': ['error', { allowArguments: true }],
|
|
298
|
+
|
|
299
|
+
// Enforce valid titles (jest-specific duplicate of vitest/valid-title)
|
|
300
|
+
// https://oxc.rs/docs/guide/usage/linter/rules/jest/valid-title.html
|
|
301
|
+
// decision: this is covered by `vitest/valid-title`
|
|
302
|
+
'jest/valid-title': 'off',
|
|
298
303
|
|
|
299
304
|
//rules via jsPlugins (@vitest/eslint-plugin + no-only-tests)
|
|
300
305
|
|