@wistia/oxlint-config 1.12.10 → 1.12.12

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +5 -5
  3. package/package.json +18 -18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # @wistia/oxlint-config
2
2
 
3
+ ## 1.12.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [#209](https://github.com/wistia/oxlint-config/pull/209) [`735b630`](https://github.com/wistia/oxlint-config/commit/735b630eb46727e8be0c19679ae6acd08372bbf5) Thanks [@okize](https://github.com/okize)! - build(deps): upgrade `oxlint` to v1.89.0
8
+
9
+ - Bump peer minimum: `oxlint` to `>= 1.89.0`
10
+ - No new, renamed, or removed rules
11
+ - oxlint marks many rules as recommended. This config sets every rule explicitly and does not use categories, so no effect
12
+ - Rules already set to `error` that now report more code, no config change required:
13
+ - `eslint/prefer-const` reports destructuring assignments inside blocks
14
+ - `eslint/no-loop-func` detects writes after the loop
15
+ - `eslint/no-lonely-if` checks final `else` blocks in `else if` chains
16
+ - `eslint/prefer-template` reports separate nested concatenations
17
+ - `eslint/class-methods-use-this` counts `this` in parameter defaults
18
+ - `eslint/no-param-reassign` reports writes to rest parameters
19
+ - `eslint/no-useless-assignment` reports dead stores to function parameters. Off for TypeScript, so JavaScript only
20
+ - `eslint/no-setter-return` checks setters in property descriptors
21
+ - `eslint/id-length` checks destructuring assignment targets
22
+ - `unicorn/prefer-string-replace-all` resolves regex variables
23
+ - `unicorn/prefer-native-coercion-functions` checks object methods and function properties
24
+ - `unicorn/prefer-regexp-test` checks logical operands in boolean contexts
25
+ - `unicorn/prefer-type-error` handles parenthesized type checks
26
+ - Rules already set to `error` that now report less code, no config change required:
27
+ - `eslint/block-scoped-var` ignores declarations without writes
28
+ - `eslint/prefer-arrow-callback` ignores functions used as conditional tests
29
+ - `eslint/no-unused-vars` counts conditional calls in sequences as uses. Off for TypeScript, so JavaScript only
30
+ - `unicorn/prefer-spread` ignores `super` method calls
31
+ - `unicorn/no-array-callback-reference` ignores callback factory calls
32
+ - `unicorn/prefer-at` reports each slice index read once
33
+ - Fix changes on rules set to `error`: `eslint/no-var` skips the fix for redeclared bindings
34
+ - Rules set to `off`, no effect: `eslint/sort-vars`, `eslint/sort-imports`, `eslint/sort-keys`, `eslint/max-params`, `eslint/no-magic-numbers`, `eslint/no-div-regex`, `unicorn/no-useless-undefined`, `unicorn/prefer-string-raw`, `unicorn/catch-error-name`, `unicorn/consistent-function-scoping`
35
+
36
+ ## 1.12.11
37
+
38
+ ### Patch Changes
39
+
40
+ - [#206](https://github.com/wistia/oxlint-config/pull/206) [`6c48ca5`](https://github.com/wistia/oxlint-config/commit/6c48ca50086fa45619e10a45738282466b1b7fb2) Thanks [@okize](https://github.com/okize)! - build(deps): upgrade `oxlint` to v1.88.0
41
+
42
+ - Bump peer minimums: `oxlint` to `>= 1.88.0`, `oxlint-tsgolint` to `>= 7.0.2004`, `eslint` to `>= 10.12.0`, `oxfmt` to `>= 0.72.0`
43
+ - No new, renamed, or removed rules
44
+ - Changes to rules already set to `error`, no config change required:
45
+ - `unicorn/prefer-bigint-literals` unwraps redundant `BigInt()` calls and skips the auto-fix when precision would be lost
46
+ - `oxc/bad-array-method-on-arguments` runs faster, no behavior change
47
+ - Rules set to `off`, no effect: `eslint/sort-keys` (natural sort order now matches ESLint), `unicorn/prefer-query-selector` (gains an `allowWithVariables` option)
48
+
3
49
  ## 1.12.10
4
50
 
5
51
  ### Patch Changes
package/README.md CHANGED
@@ -38,8 +38,8 @@ Create an `oxlint.config.ts` in your project root:
38
38
  **TypeScript & React project** (most common):
39
39
 
40
40
  ```ts
41
- import { defineConfig } from 'oxlint';
42
41
  import { typescriptConfig, reactConfig } from '@wistia/oxlint-config';
42
+ import { defineConfig } from 'oxlint';
43
43
 
44
44
  export default defineConfig({
45
45
  extends: [typescriptConfig, reactConfig],
@@ -49,8 +49,8 @@ export default defineConfig({
49
49
  **JavaScript-only project:**
50
50
 
51
51
  ```ts
52
- import { defineConfig } from 'oxlint';
53
52
  import { javascriptConfig } from '@wistia/oxlint-config';
53
+ import { defineConfig } from 'oxlint';
54
54
 
55
55
  export default defineConfig({
56
56
  extends: [javascriptConfig],
@@ -83,7 +83,6 @@ Feature configs wrap their rules in `overrides` with default file patterns, so t
83
83
  **Composing configs:**
84
84
 
85
85
  ```ts
86
- import { defineConfig } from 'oxlint';
87
86
  import {
88
87
  typescriptConfig,
89
88
  reactConfig,
@@ -93,6 +92,7 @@ import {
93
92
  storybookConfig,
94
93
  nodeConfig,
95
94
  } from '@wistia/oxlint-config';
95
+ import { defineConfig } from 'oxlint';
96
96
 
97
97
  export default defineConfig({
98
98
  extends: [
@@ -124,8 +124,8 @@ export default defineConfig({
124
124
  File-specific overrides use `overrides`. Note that `extends` is not supported inside `overrides` — use rule imports for those:
125
125
 
126
126
  ```ts
127
- import { defineConfig } from 'oxlint';
128
127
  import { typescriptConfig, vitestRules } from '@wistia/oxlint-config';
128
+ import { defineConfig } from 'oxlint';
129
129
 
130
130
  export default defineConfig({
131
131
  extends: [typescriptConfig],
@@ -166,8 +166,8 @@ Create an `oxfmt.config.mts` in your project root. Spread `oxfmtConfig` and over
166
166
 
167
167
  ```ts
168
168
  import type { OxfmtConfig } from 'oxfmt';
169
- import { defineConfig } from 'oxfmt';
170
169
  import { oxfmtConfig } from '@wistia/oxlint-config/oxfmtConfig';
170
+ import { defineConfig } from 'oxfmt';
171
171
 
172
172
  // oxlint-disable-next-line import-x/no-default-export
173
173
  export default defineConfig({
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@wistia/oxlint-config",
3
- "version": "1.12.10",
3
+ "version": "1.12.12",
4
+ "packageManager": "yarn@4.18.1",
4
5
  "description": "Wistia's Oxlint configurations",
5
6
  "keywords": [
6
7
  "linter",
@@ -76,16 +77,16 @@
76
77
  "validate": "vitest run --project validate"
77
78
  },
78
79
  "dependencies": {
79
- "@eslint-react/eslint-plugin": "^5.20.5",
80
+ "@eslint-react/eslint-plugin": "^5.28.2",
80
81
  "@vitest/eslint-plugin": "^1.6.27",
81
82
  "confusing-browser-globals": "^1.0.11",
82
83
  "eslint-plugin-barrel-files": "^3.0.1",
83
84
  "eslint-plugin-import-x": "^4.17.1",
84
85
  "eslint-plugin-jest-dom": "^5.10.1",
85
- "eslint-plugin-n": "^18.3.0",
86
+ "eslint-plugin-n": "^18.5.0",
86
87
  "eslint-plugin-no-only-tests": "^3.4.0",
87
- "eslint-plugin-playwright": "^2.12.0",
88
- "eslint-plugin-storybook": "^10.6.0",
88
+ "eslint-plugin-playwright": "^2.12.1",
89
+ "eslint-plugin-storybook": "^10.6.3",
89
90
  "eslint-plugin-styled-components": "^0.0.0",
90
91
  "eslint-plugin-styled-components-a11y": "^2.2.1",
91
92
  "eslint-plugin-testing-library": "^7.16.2",
@@ -94,19 +95,19 @@
94
95
  "devDependencies": {
95
96
  "@changesets/changelog-github": "^1.0.1",
96
97
  "@changesets/cli": "^3.0.3",
97
- "eslint": "^10.11.0",
98
- "oxfmt": "^0.71.0",
99
- "oxlint": "^1.87.0",
100
- "oxlint-tsgolint": "^7.0.2003",
101
- "storybook": "^10.6.0",
102
- "vite": "^8.3.0",
103
- "vitest": "^5.0.1"
98
+ "eslint": "^10.13.0",
99
+ "oxfmt": "^0.74.0",
100
+ "oxlint": "^1.89.0",
101
+ "oxlint-tsgolint": "^7.0.2004",
102
+ "storybook": "^10.6.3",
103
+ "vite": "^8.3.4",
104
+ "vitest": "^5.0.5"
104
105
  },
105
106
  "peerDependencies": {
106
- "eslint": ">= 10.11.0",
107
- "oxfmt": ">= 0.71.0",
108
- "oxlint": ">= 1.87.0",
109
- "oxlint-tsgolint": ">= 7.0.2003"
107
+ "eslint": ">= 10.13.0",
108
+ "oxfmt": ">= 0.74.0",
109
+ "oxlint": ">= 1.89.0",
110
+ "oxlint-tsgolint": ">= 7.0.2004"
110
111
  },
111
112
  "peerDependenciesMeta": {
112
113
  "oxfmt": {
@@ -115,6 +116,5 @@
115
116
  },
116
117
  "engines": {
117
118
  "node": "^20.19.0 || ^22.13.0 || >=24 || >=26"
118
- },
119
- "packageManager": "yarn@4.18.0"
119
+ }
120
120
  }