@wistia/oxlint-config 1.12.0 → 1.12.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/CHANGELOG.md +25 -0
- package/package.json +15 -15
- package/rules/node.mjs +9 -0
- package/rules/testing-library.mjs +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @wistia/oxlint-config
|
|
2
2
|
|
|
3
|
+
## 1.12.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#181](https://github.com/wistia/oxlint-config/pull/181) [`97af428`](https://github.com/wistia/oxlint-config/commit/97af42809960b3481deaa4e9d439596570100c62) Thanks [@okize](https://github.com/okize)! - build(deps): upgrade `oxlint` to v1.80.0
|
|
8
|
+
|
|
9
|
+
- Bump `oxlint` peer minimum to `>= 1.80.0` and `oxfmt` peer minimum to `>= 0.65.0`
|
|
10
|
+
- No new, renamed, or removed rules in v1.80.0
|
|
11
|
+
- Changes to rules already set to `error`, no config change required:
|
|
12
|
+
- `typescript/no-confusing-non-null-assertion` gains a suggestion fixer
|
|
13
|
+
- `oxc/double-comparisons` now handles grouped logical expressions
|
|
14
|
+
- `eslint/no-useless-rename` fixer now preserves type modifiers
|
|
15
|
+
|
|
16
|
+
## 1.12.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [#182](https://github.com/wistia/oxlint-config/pull/182) [`ea18a04`](https://github.com/wistia/oxlint-config/commit/ea18a044a4f8ce425188c112667de3cbfbefc44d) Thanks [@okize](https://github.com/okize)! - build(deps): patch & minor upgrades to dependencies to bring up to date
|
|
21
|
+
|
|
22
|
+
- Bump `eslint` peer minimum to `>= 10.9.0`
|
|
23
|
+
- New jsPlugin rules, now configured:
|
|
24
|
+
- `n/prefer-import/assert-strict`: `error` — use `node:assert/strict` instead of the legacy non-strict `node:assert`
|
|
25
|
+
- `n/prefer-process-get-builtin-module`: `off` — flags idiomatic `require()` of builtins in CommonJS and has no auto-fix
|
|
26
|
+
- `eslint-plugin-jest-dom/prefer-pressed`: `error` — use `toBePressed()` instead of checking `aria-pressed` attributes
|
|
27
|
+
|
|
3
28
|
## 1.12.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/oxlint-config",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.2",
|
|
4
4
|
"description": "Wistia's Oxlint configurations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"linter",
|
|
@@ -76,16 +76,16 @@
|
|
|
76
76
|
"validate": "vitest run test/validate-configs.test.mjs"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@eslint-react/eslint-plugin": "^5.18.
|
|
80
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
79
|
+
"@eslint-react/eslint-plugin": "^5.18.6",
|
|
80
|
+
"@vitest/eslint-plugin": "^1.6.27",
|
|
81
81
|
"confusing-browser-globals": "^1.0.11",
|
|
82
82
|
"eslint-plugin-barrel-files": "^3.0.1",
|
|
83
83
|
"eslint-plugin-import-x": "^4.17.1",
|
|
84
|
-
"eslint-plugin-jest-dom": "^5.
|
|
85
|
-
"eslint-plugin-n": "^18.
|
|
84
|
+
"eslint-plugin-jest-dom": "^5.10.1",
|
|
85
|
+
"eslint-plugin-n": "^18.3.0",
|
|
86
86
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
87
87
|
"eslint-plugin-playwright": "^2.11.0",
|
|
88
|
-
"eslint-plugin-storybook": "^10.5.
|
|
88
|
+
"eslint-plugin-storybook": "^10.5.10",
|
|
89
89
|
"eslint-plugin-styled-components": "^0.0.0",
|
|
90
90
|
"eslint-plugin-styled-components-a11y": "^2.2.1",
|
|
91
91
|
"eslint-plugin-testing-library": "^7.16.2",
|
|
@@ -93,18 +93,18 @@
|
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@changesets/changelog-github": "^1.0.0",
|
|
96
|
-
"@changesets/cli": "^3.0.
|
|
97
|
-
"eslint": "^10.
|
|
98
|
-
"oxfmt": "^0.
|
|
99
|
-
"oxlint": "^1.
|
|
96
|
+
"@changesets/cli": "^3.0.1",
|
|
97
|
+
"eslint": "^10.9.0",
|
|
98
|
+
"oxfmt": "^0.65.0",
|
|
99
|
+
"oxlint": "^1.80.0",
|
|
100
100
|
"oxlint-tsgolint": "^7.0.2001",
|
|
101
|
-
"storybook": "^10.5.
|
|
102
|
-
"vitest": "^4.1.
|
|
101
|
+
"storybook": "^10.5.10",
|
|
102
|
+
"vitest": "^4.1.11"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
|
-
"eslint": ">= 10.
|
|
106
|
-
"oxfmt": ">= 0.
|
|
107
|
-
"oxlint": ">= 1.
|
|
105
|
+
"eslint": ">= 10.9.0",
|
|
106
|
+
"oxfmt": ">= 0.65.0",
|
|
107
|
+
"oxlint": ">= 1.80.0",
|
|
108
108
|
"oxlint-tsgolint": ">= 7.0.2001"
|
|
109
109
|
},
|
|
110
110
|
"peerDependenciesMeta": {
|
package/rules/node.mjs
CHANGED
|
@@ -155,6 +155,10 @@ export const nodeRules = {
|
|
|
155
155
|
// https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/fs.md
|
|
156
156
|
'n/prefer-promises/fs': 'error',
|
|
157
157
|
|
|
158
|
+
// Enforce using node:assert/strict instead of the legacy non-strict node:assert
|
|
159
|
+
// https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-import/assert-strict.md
|
|
160
|
+
'n/prefer-import/assert-strict': 'error',
|
|
161
|
+
|
|
158
162
|
// Require correct usage of hashbang
|
|
159
163
|
// https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/hashbang.md
|
|
160
164
|
'n/hashbang': 'error',
|
|
@@ -163,6 +167,11 @@ export const nodeRules = {
|
|
|
163
167
|
// https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-node-protocol.md
|
|
164
168
|
'n/prefer-node-protocol': 'error',
|
|
165
169
|
|
|
170
|
+
// Enforce process.getBuiltinModule() over require()/awaited import() of Node.js builtins
|
|
171
|
+
// https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-process-get-builtin-module.md
|
|
172
|
+
// Decision: too opinionated; flags idiomatic require() of builtins in CommonJS and has no auto-fix
|
|
173
|
+
'n/prefer-process-get-builtin-module': 'off',
|
|
174
|
+
|
|
166
175
|
// Require error handling in callbacks
|
|
167
176
|
// https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/handle-callback-err.md
|
|
168
177
|
// Decision: handled by native node/handle-callback-err
|
|
@@ -150,6 +150,10 @@ export const testingLibraryRules = {
|
|
|
150
150
|
// https://github.com/testing-library/eslint-plugin-jest-dom/blob/main/docs/rules/prefer-in-document.md
|
|
151
151
|
'eslint-plugin-jest-dom/prefer-in-document': 'error',
|
|
152
152
|
|
|
153
|
+
// Prefer toBePressed over checking aria-pressed attributes
|
|
154
|
+
// https://github.com/testing-library/eslint-plugin-jest-dom/blob/main/docs/rules/prefer-pressed.md
|
|
155
|
+
'eslint-plugin-jest-dom/prefer-pressed': 'error',
|
|
156
|
+
|
|
153
157
|
// Prefer toBeRequired over checking attributes
|
|
154
158
|
// https://github.com/testing-library/eslint-plugin-jest-dom/blob/main/docs/rules/prefer-required.md
|
|
155
159
|
'eslint-plugin-jest-dom/prefer-required': 'error',
|