@wistia/oxlint-config 1.12.4 → 1.12.5
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 +22 -0
- package/package.json +3 -3
- package/rules/react.mjs +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @wistia/oxlint-config
|
|
2
2
|
|
|
3
|
+
## 1.12.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#191](https://github.com/wistia/oxlint-config/pull/191) [`f7a55a0`](https://github.com/wistia/oxlint-config/commit/f7a55a02874ca9f266427f5fc0f44b763728a7ee) Thanks [@okize](https://github.com/okize)! - build(deps): upgrade `oxlint` to v1.83.0
|
|
8
|
+
|
|
9
|
+
- Bump `oxlint` peer minimum to `>= 1.83.0`
|
|
10
|
+
- No new, renamed, or removed rules in v1.83.0
|
|
11
|
+
- `@eslint-react/jsx-no-useless-fragment` set to `off`. The native `react/jsx-no-useless-fragment` rule covers the same cases and was already `error`, so every useless fragment was reported twice
|
|
12
|
+
- React 19.3 support, rules already set to `error`, no config change required:
|
|
13
|
+
- `react/no-unknown-property` accepts the new DOM props `onFullscreenChange`, `onFullscreenError`, `onFullscreenChangeCapture`, `onFullscreenErrorCapture`, `credentialless` on `<iframe>`, and `maskType` on `<mask>`
|
|
14
|
+
- `react/jsx-no-useless-fragment` no longer reports `<Fragment ref={...}>`, matching the existing `key` exemption
|
|
15
|
+
- Changes to rules already set to `error`, no config change required. Consumers may see new errors from the first four:
|
|
16
|
+
- `unicorn/prefer-array-flat-map` now reports `.filter().flatMap()` chains with simple untyped arrow callbacks
|
|
17
|
+
- `unicorn/prefer-at` now reports single-character `substring(i, i + 1)` calls
|
|
18
|
+
- `unicorn/prefer-default-parameters` now reports `value ??= x` and `value ||= x`
|
|
19
|
+
- `typescript/prefer-for-of` now reports loops over computed collections such as `this.values[key]`
|
|
20
|
+
- `unicorn/prefer-array-flat` no longer reports `[].concat(value)` or `Array.prototype.concat.call([], value)` without a spread argument
|
|
21
|
+
- `eslint/no-unused-vars` with `args: 'after-used'` no longer flags parameters before a used rest parameter, and no longer reports implicitly exported declarations in ambient modules that also contain an `export`-modified declaration (the rule is off in the typescript config)
|
|
22
|
+
- Rules set to `off`, no effect: `unicorn/prefer-global-this` (no longer reports references to window event methods that are not calls)
|
|
23
|
+
- `typescript/no-unnecessary-type-parameters` and `typescript/prefer-find` are now marked as offering suggestions. Metadata only, no behavior change
|
|
24
|
+
|
|
3
25
|
## 1.12.4
|
|
4
26
|
|
|
5
27
|
### Patch 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.5",
|
|
4
4
|
"description": "Wistia's Oxlint configurations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"linter",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@changesets/cli": "^3.0.1",
|
|
97
97
|
"eslint": "^10.9.0",
|
|
98
98
|
"oxfmt": "^0.67.0",
|
|
99
|
-
"oxlint": "
|
|
99
|
+
"oxlint": "1.83.0",
|
|
100
100
|
"oxlint-tsgolint": "^7.0.2001",
|
|
101
101
|
"storybook": "^10.5.10",
|
|
102
102
|
"vite": "^8.2.2",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"eslint": ">= 10.9.0",
|
|
107
107
|
"oxfmt": ">= 0.67.0",
|
|
108
|
-
"oxlint": ">= 1.
|
|
108
|
+
"oxlint": ">= 1.83.0",
|
|
109
109
|
"oxlint-tsgolint": ">= 7.0.2001"
|
|
110
110
|
},
|
|
111
111
|
"peerDependenciesMeta": {
|
package/rules/react.mjs
CHANGED
|
@@ -429,7 +429,8 @@ export const reactRules = {
|
|
|
429
429
|
|
|
430
430
|
// Disallow unnecessary fragments
|
|
431
431
|
// https://eslint-react.xyz/docs/rules/jsx-no-useless-fragment
|
|
432
|
-
|
|
432
|
+
// Decision: handled by native react/jsx-no-useless-fragment
|
|
433
|
+
'@eslint-react/jsx-no-useless-fragment': 'off',
|
|
433
434
|
|
|
434
435
|
// Prevent leaked semicolons in JSX
|
|
435
436
|
// https://eslint-react.xyz/docs/rules/jsx-no-leaked-semicolon
|