@wistia/oxlint-config 1.12.3 → 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 +41 -0
- package/package.json +9 -8
- package/rules/react.mjs +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
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
|
+
|
|
25
|
+
## 1.12.4
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- [#189](https://github.com/wistia/oxlint-config/pull/189) [`2b702fe`](https://github.com/wistia/oxlint-config/commit/2b702fe8e4f34212447387d6c86c19403f499462) Thanks [@okize](https://github.com/okize)! - build(deps): upgrade `oxlint` to v1.82.0
|
|
30
|
+
|
|
31
|
+
- Bump `oxlint` peer minimum to `>= 1.82.0` and `oxfmt` peer minimum to `>= 0.67.0`
|
|
32
|
+
- No new, renamed, or removed rules in v1.82.0
|
|
33
|
+
- `eslint/no-unmodified-loop-condition` gains a `checkConditionalExpressions` option. It defaults to `false`, so the rule behaves as before
|
|
34
|
+
- Changes to rules already set to `error`, no config change required:
|
|
35
|
+
- `eslint/no-useless-assignment` now tracks destructuring assignment targets. Consumers may see new errors in plain JavaScript (the rule is off in the typescript config)
|
|
36
|
+
- `eslint/no-unused-vars` now follows references inside arrow functions stored on properties or passed to calls and constructors. Results may change in plain JavaScript (the rule is off in the typescript config)
|
|
37
|
+
- `jsx_a11y/anchor-has-content` allows anchors passed as custom component props
|
|
38
|
+
- `eslint/no-array-constructor` autofix inserts a semicolon when the replacement `[` would otherwise chain onto the previous line
|
|
39
|
+
- `typescript/no-explicit-any` autofix replaces a bare `any` rest parameter with `unknown[]`
|
|
40
|
+
- `typescript/no-extraneous-class` no longer suggests deleting empty class expressions
|
|
41
|
+
- `eslint/id-length` `properties: 'never'` now covers TypeScript interface and type-literal members. This config does not set that option, so no effect
|
|
42
|
+
- Rules set to `off`, no effect: `unicorn/numeric-separators-style` (schema defaults corrected), `react/jsx-no-literals` (checks nested JSX expression literals)
|
|
43
|
+
|
|
3
44
|
## 1.12.3
|
|
4
45
|
|
|
5
46
|
### 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",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"format:ci": "oxfmt -c oxfmt.config.mjs --check .",
|
|
73
73
|
"outdated": "yarn upgrade-interactive",
|
|
74
74
|
"release": "changeset publish",
|
|
75
|
-
"test": "vitest run --
|
|
76
|
-
"validate": "vitest run
|
|
75
|
+
"test": "vitest run --project test",
|
|
76
|
+
"validate": "vitest run --project validate"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"@eslint-react/eslint-plugin": "^5.18.6",
|
|
@@ -95,16 +95,17 @@
|
|
|
95
95
|
"@changesets/changelog-github": "^1.0.0",
|
|
96
96
|
"@changesets/cli": "^3.0.1",
|
|
97
97
|
"eslint": "^10.9.0",
|
|
98
|
-
"oxfmt": "^0.
|
|
99
|
-
"oxlint": "
|
|
98
|
+
"oxfmt": "^0.67.0",
|
|
99
|
+
"oxlint": "1.83.0",
|
|
100
100
|
"oxlint-tsgolint": "^7.0.2001",
|
|
101
101
|
"storybook": "^10.5.10",
|
|
102
|
-
"
|
|
102
|
+
"vite": "^8.2.2",
|
|
103
|
+
"vitest": "^5.0.0"
|
|
103
104
|
},
|
|
104
105
|
"peerDependencies": {
|
|
105
106
|
"eslint": ">= 10.9.0",
|
|
106
|
-
"oxfmt": ">= 0.
|
|
107
|
-
"oxlint": ">= 1.
|
|
107
|
+
"oxfmt": ">= 0.67.0",
|
|
108
|
+
"oxlint": ">= 1.83.0",
|
|
108
109
|
"oxlint-tsgolint": ">= 7.0.2001"
|
|
109
110
|
},
|
|
110
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
|