@wistia/oxlint-config 1.12.8 → 1.12.10

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,46 @@
1
1
  # @wistia/oxlint-config
2
2
 
3
+ ## 1.12.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [#202](https://github.com/wistia/oxlint-config/pull/202) [`2e9a7b1`](https://github.com/wistia/oxlint-config/commit/2e9a7b1561577907c6970fd7519a7b76f01c6df5) Thanks [@okize](https://github.com/okize)! - build(deps): upgrade `oxlint` to v1.87.0
8
+
9
+ - Bump peer minimum: `oxlint` to `>= 1.87.0`
10
+ - No new, renamed, or removed rules
11
+ - Changes to rules already set to `error`, no config change required:
12
+ - `react/no-unescaped-entities` and `react/jsx-no-target-blank` gain editor suggestions
13
+ - `jsx-a11y/label-has-associated-control` validates label attribute values
14
+ - `jsx-a11y/mouse-events-have-key-events` handles `null` and `undefined` event handlers
15
+ - `jsx-a11y/lang` validates `lang` values written as expression strings, such as `lang={'en'}`
16
+ - `eslint/prefer-exponentiation-operator` keeps operator precedence in its fix
17
+ - `vitest/valid-title` keeps checking a title after an allowed word
18
+ - `eslint/no-unused-vars` fixes ignore patterns when argument checks are disabled. This config sets `args: 'after-used'`, so no effect
19
+ - Rules set to `off`, no effect: `unicorn/no-useless-switch-case` (gains a suggestion), `unicorn/numeric-separators-style` (reports misgrouped BigInt literals), `unicorn/no-zero-fractions` (fixer change)
20
+
21
+ ## 1.12.9
22
+
23
+ ### Patch Changes
24
+
25
+ - [#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
26
+
27
+ - Bump peer minimums: `oxlint` to `>= 1.86.0`, `oxlint-tsgolint` to `>= 7.0.2003`, `oxfmt` to `>= 0.71.0`
28
+ - 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
29
+ - No renamed or removed rules
30
+ - Changes to rules already set to `error`, no config change required:
31
+ - `eslint/require-await` counts `await using` as an await
32
+ - `eslint/prefer-const` no longer reports a variable whose only assignment is inside another expression, such as `let a; foo(a = 1)`
33
+ - `eslint/one-var` keeps `declare` when its fix splits declarations
34
+ - `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)
35
+ - `import/no-duplicates` treats imports with different import attributes as distinct
36
+ - `unicorn/prefer-spread` no longer reports `String#split('')`
37
+ - `typescript/no-unnecessary-parameter-property-assignment` allows `this.name = name` after the parameter was reassigned
38
+ - `typescript/unified-signatures` aligns with typescript-eslint
39
+ - `node/no-exports-assign` moves from the style category to suspicious. This config sets it explicitly, so no effect
40
+ - Rules set to `off`, no effect: `react/only-export-components` (gains an `allowCompoundComponents` option)
41
+ - `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`
42
+ - `oxfmt` v0.71.0 bundles Prettier 3.9.9 and fixes comment placement. No config option changes
43
+
3
44
  ## 1.12.8
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.8",
3
+ "version": "1.12.10",
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.85.0",
100
- "oxlint-tsgolint": "^7.0.2002",
98
+ "oxfmt": "^0.71.0",
99
+ "oxlint": "^1.87.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.85.0",
109
- "oxlint-tsgolint": ">= 7.0.2002"
107
+ "oxfmt": ">= 0.71.0",
108
+ "oxlint": ">= 1.87.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',