@wistia/oxlint-config 1.0.0 → 1.0.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 +13 -12
- package/rules/base.mjs +5 -0
- package/rules/typescript.mjs +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/oxlint-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Wistia's Oxlint configurations",
|
|
5
5
|
"packageManager": "yarn@4.14.1",
|
|
6
6
|
"type": "module",
|
|
@@ -51,20 +51,21 @@
|
|
|
51
51
|
"validate": "vitest run test/validate-configs.test.mjs"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"
|
|
55
|
-
"oxlint
|
|
54
|
+
"eslint": ">= 10.4.1",
|
|
55
|
+
"oxlint": ">= 1.69.0",
|
|
56
|
+
"oxlint-tsgolint": ">= 0.23.0"
|
|
56
57
|
},
|
|
57
58
|
"dependencies": {
|
|
58
|
-
"@eslint-react/eslint-plugin": "^5.8.
|
|
59
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
59
|
+
"@eslint-react/eslint-plugin": "^5.8.16",
|
|
60
|
+
"@vitest/eslint-plugin": "^1.6.19",
|
|
60
61
|
"confusing-browser-globals": "^1.0.11",
|
|
61
62
|
"eslint-plugin-barrel-files": "^3.0.1",
|
|
62
63
|
"eslint-plugin-import-x": "^4.16.2",
|
|
63
64
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
64
|
-
"eslint-plugin-n": "^18.0
|
|
65
|
+
"eslint-plugin-n": "^18.1.0",
|
|
65
66
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
66
67
|
"eslint-plugin-playwright": "^2.10.4",
|
|
67
|
-
"eslint-plugin-storybook": "^10.4.
|
|
68
|
+
"eslint-plugin-storybook": "^10.4.2",
|
|
68
69
|
"eslint-plugin-styled-components": "^0.0.0",
|
|
69
70
|
"eslint-plugin-styled-components-a11y": "^2.2.1",
|
|
70
71
|
"eslint-plugin-testing-library": "^7.16.2",
|
|
@@ -73,12 +74,12 @@
|
|
|
73
74
|
"devDependencies": {
|
|
74
75
|
"@changesets/changelog-github": "^0.7.0",
|
|
75
76
|
"@changesets/cli": "^2.31.0",
|
|
76
|
-
"eslint": "^10.4.
|
|
77
|
-
"oxfmt": "^0.
|
|
78
|
-
"oxlint": "^1.
|
|
77
|
+
"eslint": "^10.4.1",
|
|
78
|
+
"oxfmt": "^0.54.0",
|
|
79
|
+
"oxlint": "^1.69.0",
|
|
79
80
|
"oxlint-tsgolint": "^0.23.0",
|
|
80
|
-
"storybook": "^10.4.
|
|
81
|
-
"vitest": "^4.1.
|
|
81
|
+
"storybook": "^10.4.2",
|
|
82
|
+
"vitest": "^4.1.8"
|
|
82
83
|
},
|
|
83
84
|
"engines": {
|
|
84
85
|
"node": "^20.19.0 || ^22.13.0 || >=24 || >=26"
|
package/rules/base.mjs
CHANGED
|
@@ -618,6 +618,11 @@ export const baseRules = {
|
|
|
618
618
|
// https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-exponentiation-operator.html
|
|
619
619
|
'eslint/prefer-exponentiation-operator': 'error',
|
|
620
620
|
|
|
621
|
+
// Enforce using named capture group in regular expression
|
|
622
|
+
// https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-named-capture-group.html
|
|
623
|
+
// Decision: too strict for general use
|
|
624
|
+
'eslint/prefer-named-capture-group': 'off',
|
|
625
|
+
|
|
621
626
|
// Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals
|
|
622
627
|
// https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-numeric-literals.html
|
|
623
628
|
'eslint/prefer-numeric-literals': 'error',
|
package/rules/typescript.mjs
CHANGED
|
@@ -108,6 +108,10 @@ export const typescriptRules = {
|
|
|
108
108
|
// https://oxc.rs/docs/guide/usage/linter/rules/typescript/explicit-module-boundary-types.html
|
|
109
109
|
'typescript/explicit-module-boundary-types': 'error',
|
|
110
110
|
|
|
111
|
+
// Enforce using a particular method signature syntax
|
|
112
|
+
// https://oxc.rs/docs/guide/usage/linter/rules/typescript/method-signature-style.html
|
|
113
|
+
'typescript/method-signature-style': 'error',
|
|
114
|
+
|
|
111
115
|
// Disallow using the delete operator on array values
|
|
112
116
|
// https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-array-delete.html
|
|
113
117
|
'typescript/no-array-delete': 'error',
|