@wistia/oxlint-config 1.12.7 → 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 CHANGED
@@ -1,5 +1,43 @@
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
+
26
+ ## 1.12.8
27
+
28
+ ### Patch Changes
29
+
30
+ - [#197](https://github.com/wistia/oxlint-config/pull/197) [`6e62cae`](https://github.com/wistia/oxlint-config/commit/6e62cae592ffd1f1540ecda8cf2b2daa903ab28b) Thanks [@okize](https://github.com/okize)! - build(deps): upgrade `oxlint` to v1.85.0
31
+
32
+ - Bump `oxlint` peer minimum to `>= 1.85.0`
33
+ - No new, renamed, or removed rules in v1.84.0 or v1.85.0
34
+ - v1.85.0 has no rule changes. oxlint no longer discovers nested config files in Vite+ mode
35
+ - v1.84.0 changes to rules already set to `error`, no config change required:
36
+ - `react/no-unknown-property` accepts `onTransitionRun`, `onTransitionStart`, `onTransitionCancel`, and their Capture variants
37
+ - `eslint/preserve-caught-error` fixes no longer conflict with `unicorn/prefer-optional-catch-binding`. `catch (error) { throw new Error('m') }` now fixes to `catch { throw new Error('m') }` instead of adding a dangling `cause: error`
38
+ - `eslint/no-unused-vars` reports unused private bindings inside a TypeScript namespace even when a root export shares the name. Its fixer keeps comments when removing imports and keeps rest bindings when removing array elements (the rule is off in the typescript config)
39
+ - v1.84.0 rules set to `off`, no effect: `unicorn/no-unreadable-iife` (gains a suggestion), `unicorn/consistent-function-scoping` (reports functions that only capture a distant ancestor), `vitest/prefer-to-be-truthy` (fix reclassified as a suggestion)
40
+
3
41
  ## 1.12.7
4
42
 
5
43
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/oxlint-config",
3
- "version": "1.12.7",
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.70.0",
99
- "oxlint": "1.84.0",
100
- "oxlint-tsgolint": "^7.0.2002",
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.70.0",
108
- "oxlint": ">= 1.84.0",
109
- "oxlint-tsgolint": ">= 7.0.2002"
107
+ "oxfmt": ">= 0.71.0",
108
+ "oxlint": ">= 1.86.0",
109
+ "oxlint-tsgolint": ">= 7.0.2003"
110
110
  },
111
111
  "peerDependenciesMeta": {
112
112
  "oxfmt": {
@@ -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',