@wistia/oxlint-config 1.12.8 → 1.12.9
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 +23 -0
- package/package.json +7 -7
- package/rules/typescript.mjs +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @wistia/oxlint-config
|
|
2
2
|
|
|
3
|
+
## 1.12.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#199](https://github.com/wistia/oxlint-config/pull/199) [`680fc5e`](https://github.com/wistia/oxlint-config/commit/680fc5e58bf7399a2cdf294134f8dfb5482d9776) Thanks [@okize](https://github.com/okize)! - build(deps): upgrade `oxlint` to v1.86.0
|
|
8
|
+
|
|
9
|
+
- Bump peer minimums: `oxlint` to `>= 1.86.0`, `oxlint-tsgolint` to `>= 7.0.2003`, `oxfmt` to `>= 0.71.0`
|
|
10
|
+
- New rule `typescript/no-generated-empty-object-type` set to `error`. It is type-aware and reports utility types that resolve to `{}`, such as `Pick<Data, never>`. Needs `oxlint-tsgolint` 7.0.2003 or later. Consumers using type-aware linting may see new errors
|
|
11
|
+
- No renamed or removed rules
|
|
12
|
+
- Changes to rules already set to `error`, no config change required:
|
|
13
|
+
- `eslint/require-await` counts `await using` as an await
|
|
14
|
+
- `eslint/prefer-const` no longer reports a variable whose only assignment is inside another expression, such as `let a; foo(a = 1)`
|
|
15
|
+
- `eslint/one-var` keeps `declare` when its fix splits declarations
|
|
16
|
+
- `eslint/no-unused-vars` honors ignore patterns inside array rest bindings and treats consumed update expressions such as `new Foo(a++)` as uses (the rule is off in the typescript config)
|
|
17
|
+
- `import/no-duplicates` treats imports with different import attributes as distinct
|
|
18
|
+
- `unicorn/prefer-spread` no longer reports `String#split('')`
|
|
19
|
+
- `typescript/no-unnecessary-parameter-property-assignment` allows `this.name = name` after the parameter was reassigned
|
|
20
|
+
- `typescript/unified-signatures` aligns with typescript-eslint
|
|
21
|
+
- `node/no-exports-assign` moves from the style category to suspicious. This config sets it explicitly, so no effect
|
|
22
|
+
- Rules set to `off`, no effect: `react/only-export-components` (gains an `allowCompoundComponents` option)
|
|
23
|
+
- `oxlint-tsgolint` v7.0.2003 fixes false positives in type-aware rules already set to `error`, including `no-unnecessary-condition`, `no-useless-default-assignment`, `unbound-method`, and `no-deprecated`
|
|
24
|
+
- `oxfmt` v0.71.0 bundles Prettier 3.9.9 and fixes comment placement. No config option changes
|
|
25
|
+
|
|
3
26
|
## 1.12.8
|
|
4
27
|
|
|
5
28
|
### 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.9",
|
|
4
4
|
"description": "Wistia's Oxlint configurations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"linter",
|
|
@@ -95,18 +95,18 @@
|
|
|
95
95
|
"@changesets/changelog-github": "^1.0.1",
|
|
96
96
|
"@changesets/cli": "^3.0.3",
|
|
97
97
|
"eslint": "^10.11.0",
|
|
98
|
-
"oxfmt": "^0.
|
|
99
|
-
"oxlint": "^1.
|
|
100
|
-
"oxlint-tsgolint": "^7.0.
|
|
98
|
+
"oxfmt": "^0.71.0",
|
|
99
|
+
"oxlint": "^1.86.0",
|
|
100
|
+
"oxlint-tsgolint": "^7.0.2003",
|
|
101
101
|
"storybook": "^10.6.0",
|
|
102
102
|
"vite": "^8.3.0",
|
|
103
103
|
"vitest": "^5.0.1"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"eslint": ">= 10.11.0",
|
|
107
|
-
"oxfmt": ">= 0.
|
|
108
|
-
"oxlint": ">= 1.
|
|
109
|
-
"oxlint-tsgolint": ">= 7.0.
|
|
107
|
+
"oxfmt": ">= 0.71.0",
|
|
108
|
+
"oxlint": ">= 1.86.0",
|
|
109
|
+
"oxlint-tsgolint": ">= 7.0.2003"
|
|
110
110
|
},
|
|
111
111
|
"peerDependenciesMeta": {
|
|
112
112
|
"oxfmt": {
|
package/rules/typescript.mjs
CHANGED
|
@@ -148,6 +148,10 @@ export const typescriptRules = {
|
|
|
148
148
|
// https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-empty-object-type.html
|
|
149
149
|
'typescript/no-empty-object-type': 'error',
|
|
150
150
|
|
|
151
|
+
// Disallow type operations that resolve to the empty object type
|
|
152
|
+
// https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-generated-empty-object-type.html
|
|
153
|
+
'typescript/no-generated-empty-object-type': 'error',
|
|
154
|
+
|
|
151
155
|
// Disallow the any type
|
|
152
156
|
// https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-explicit-any.html
|
|
153
157
|
'typescript/no-explicit-any': 'error',
|