@wistia/oxlint-config 1.12.0 → 1.12.1

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @wistia/oxlint-config
2
2
 
3
+ ## 1.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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
8
+
9
+ - Bump `eslint` peer minimum to `>= 10.9.0`
10
+ - New jsPlugin rules, now configured:
11
+ - `n/prefer-import/assert-strict`: `error` — use `node:assert/strict` instead of the legacy non-strict `node:assert`
12
+ - `n/prefer-process-get-builtin-module`: `off` — flags idiomatic `require()` of builtins in CommonJS and has no auto-fix
13
+ - `eslint-plugin-jest-dom/prefer-pressed`: `error` — use `toBePressed()` instead of checking `aria-pressed` attributes
14
+
3
15
  ## 1.12.0
4
16
 
5
17
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/oxlint-config",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
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.0",
80
- "@vitest/eslint-plugin": "^1.6.24",
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.6.0",
85
- "eslint-plugin-n": "^18.2.2",
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.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,16 +93,16 @@
93
93
  },
94
94
  "devDependencies": {
95
95
  "@changesets/changelog-github": "^1.0.0",
96
- "@changesets/cli": "^3.0.0",
97
- "eslint": "^10.8.0",
96
+ "@changesets/cli": "^3.0.1",
97
+ "eslint": "^10.9.0",
98
98
  "oxfmt": "^0.64.0",
99
99
  "oxlint": "^1.79.0",
100
100
  "oxlint-tsgolint": "^7.0.2001",
101
- "storybook": "^10.5.5",
102
- "vitest": "^4.1.10"
101
+ "storybook": "^10.5.10",
102
+ "vitest": "^4.1.11"
103
103
  },
104
104
  "peerDependencies": {
105
- "eslint": ">= 10.8.0",
105
+ "eslint": ">= 10.9.0",
106
106
  "oxfmt": ">= 0.64.0",
107
107
  "oxlint": ">= 1.79.0",
108
108
  "oxlint-tsgolint": ">= 7.0.2001"
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',