@wistia/oxlint-config 1.7.3 → 1.8.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 +7 -7
- package/rules/base.mjs +4 -0
- package/rules/unicorn.mjs +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/oxlint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Wistia's Oxlint configurations",
|
|
5
5
|
"packageManager": "yarn@4.17.1",
|
|
6
6
|
"type": "module",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"eslint": ">= 10.6.0",
|
|
64
|
-
"oxfmt": ">= 0.
|
|
65
|
-
"oxlint": ">= 1.
|
|
66
|
-
"oxlint-tsgolint": ">= 0.
|
|
64
|
+
"oxfmt": ">= 0.58.0",
|
|
65
|
+
"oxlint": ">= 1.73.0",
|
|
66
|
+
"oxlint-tsgolint": ">= 0.24.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependenciesMeta": {
|
|
69
69
|
"oxfmt": {
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"@changesets/changelog-github": "^0.7.0",
|
|
91
91
|
"@changesets/cli": "^2.31.0",
|
|
92
92
|
"eslint": "^10.6.0",
|
|
93
|
-
"oxfmt": "^0.
|
|
94
|
-
"oxlint": "^1.
|
|
95
|
-
"oxlint-tsgolint": "^0.
|
|
93
|
+
"oxfmt": "^0.58.0",
|
|
94
|
+
"oxlint": "^1.73.0",
|
|
95
|
+
"oxlint-tsgolint": "^0.24.0",
|
|
96
96
|
"storybook": "^10.4.6",
|
|
97
97
|
"vitest": "^4.1.9"
|
|
98
98
|
},
|
package/rules/base.mjs
CHANGED
|
@@ -175,6 +175,10 @@ export const baseRules = {
|
|
|
175
175
|
// https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unreachable.html
|
|
176
176
|
'eslint/no-unreachable': 'error',
|
|
177
177
|
|
|
178
|
+
// Disallow loops whose body allows only one iteration
|
|
179
|
+
// https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unreachable-loop.html
|
|
180
|
+
'eslint/no-unreachable-loop': 'error',
|
|
181
|
+
|
|
178
182
|
// Disallow control flow statements in finally blocks
|
|
179
183
|
// https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unsafe-finally.html
|
|
180
184
|
'eslint/no-unsafe-finally': 'error',
|
package/rules/unicorn.mjs
CHANGED
|
@@ -54,6 +54,10 @@ export const unicornRules = {
|
|
|
54
54
|
// https://oxc.rs/docs/guide/usage/linter/rules/unicorn/explicit-length-check.html
|
|
55
55
|
'unicorn/explicit-length-check': 'error',
|
|
56
56
|
|
|
57
|
+
// Enforce explicit delay argument for `setTimeout()` and `setInterval()`
|
|
58
|
+
// https://oxc.rs/docs/guide/usage/linter/rules/unicorn/explicit-timer-delay.html
|
|
59
|
+
'unicorn/explicit-timer-delay': 'error',
|
|
60
|
+
|
|
57
61
|
// Enforce a case style for filenames
|
|
58
62
|
// https://oxc.rs/docs/guide/usage/linter/rules/unicorn/filename-case.html
|
|
59
63
|
// Decision: project-specific; consumers enforce their own filename conventions
|
|
@@ -133,6 +137,10 @@ export const unicornRules = {
|
|
|
133
137
|
// https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-await-in-promise-methods.html
|
|
134
138
|
'unicorn/no-await-in-promise-methods': 'error',
|
|
135
139
|
|
|
140
|
+
// Disallow confusing uses of `Array#with()`
|
|
141
|
+
// https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-confusing-array-with.html
|
|
142
|
+
'unicorn/no-confusing-array-with': 'error',
|
|
143
|
+
|
|
136
144
|
// Do not use leading/trailing space between `console.log` parameters
|
|
137
145
|
// https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-console-spaces.html
|
|
138
146
|
// Decision: formatter territory
|