@wistia/oxlint-config 1.12.11 → 1.12.13

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,54 @@
1
1
  # @wistia/oxlint-config
2
2
 
3
+ ## 1.12.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [#213](https://github.com/wistia/oxlint-config/pull/213) [`7e6efba`](https://github.com/wistia/oxlint-config/commit/7e6efba9943cef7cf76aed189209cc03372fe9ab) Thanks [@okize](https://github.com/okize)! - build(deps): upgrade `oxlint` to v1.90.0
8
+
9
+ - Bump peer minimums: `oxlint` to `>= 1.90.0`, `oxlint-tsgolint` to `>= 7.0.2005`. oxlint 1.90.0 requires `oxlint-tsgolint` 7.0.2005 or later
10
+ - New rule set to `error`: `typescript/no-unsafe-enum-assignment` reports raw numbers or strings used where an enum value is expected. Type-aware only
11
+ - Rules already set to `error` that now report more code, no config change required:
12
+ - `eslint/array-callback-return` checks callbacks passed with extra arguments
13
+ - `eslint/no-useless-concat` sees through parenthesized expressions
14
+ - `vitest/no-conditional-expect` checks function expression callbacks
15
+ - Fix changes on rules set to `error`: `eslint/prefer-const` skips the fix when any declarator is reassigned
16
+ - `typescript/await-thenable` gains an `allowMixedPromiseArrays` option. It is off by default, so no effect
17
+ - Rules set to `off`, no effect: `eslint/arrow-body-style` (keeps type assertions when adding a block body)
18
+
19
+ ## 1.12.12
20
+
21
+ ### Patch Changes
22
+
23
+ - [#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
24
+
25
+ - Bump peer minimum: `oxlint` to `>= 1.89.0`
26
+ - No new, renamed, or removed rules
27
+ - oxlint marks many rules as recommended. This config sets every rule explicitly and does not use categories, so no effect
28
+ - Rules already set to `error` that now report more code, no config change required:
29
+ - `eslint/prefer-const` reports destructuring assignments inside blocks
30
+ - `eslint/no-loop-func` detects writes after the loop
31
+ - `eslint/no-lonely-if` checks final `else` blocks in `else if` chains
32
+ - `eslint/prefer-template` reports separate nested concatenations
33
+ - `eslint/class-methods-use-this` counts `this` in parameter defaults
34
+ - `eslint/no-param-reassign` reports writes to rest parameters
35
+ - `eslint/no-useless-assignment` reports dead stores to function parameters. Off for TypeScript, so JavaScript only
36
+ - `eslint/no-setter-return` checks setters in property descriptors
37
+ - `eslint/id-length` checks destructuring assignment targets
38
+ - `unicorn/prefer-string-replace-all` resolves regex variables
39
+ - `unicorn/prefer-native-coercion-functions` checks object methods and function properties
40
+ - `unicorn/prefer-regexp-test` checks logical operands in boolean contexts
41
+ - `unicorn/prefer-type-error` handles parenthesized type checks
42
+ - Rules already set to `error` that now report less code, no config change required:
43
+ - `eslint/block-scoped-var` ignores declarations without writes
44
+ - `eslint/prefer-arrow-callback` ignores functions used as conditional tests
45
+ - `eslint/no-unused-vars` counts conditional calls in sequences as uses. Off for TypeScript, so JavaScript only
46
+ - `unicorn/prefer-spread` ignores `super` method calls
47
+ - `unicorn/no-array-callback-reference` ignores callback factory calls
48
+ - `unicorn/prefer-at` reports each slice index read once
49
+ - Fix changes on rules set to `error`: `eslint/no-var` skips the fix for redeclared bindings
50
+ - 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`
51
+
3
52
  ## 1.12.11
4
53
 
5
54
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@wistia/oxlint-config",
3
- "version": "1.12.11",
3
+ "version": "1.12.13",
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.26.1",
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.4.1",
86
+ "eslint-plugin-n": "^18.5.0",
86
87
  "eslint-plugin-no-only-tests": "^3.4.0",
87
88
  "eslint-plugin-playwright": "^2.12.1",
88
- "eslint-plugin-storybook": "^10.6.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.12.0",
98
- "oxfmt": "^0.72.0",
99
- "oxlint": "^1.88.0",
100
- "oxlint-tsgolint": "^7.0.2004",
101
- "storybook": "^10.6.1",
98
+ "eslint": "^10.13.0",
99
+ "oxfmt": "^0.74.0",
100
+ "oxlint": "^1.90.0",
101
+ "oxlint-tsgolint": "^7.0.2005",
102
+ "storybook": "^10.6.3",
102
103
  "vite": "^8.3.4",
103
- "vitest": "^5.0.4"
104
+ "vitest": "^5.0.5"
104
105
  },
105
106
  "peerDependencies": {
106
- "eslint": ">= 10.12.0",
107
- "oxfmt": ">= 0.72.0",
108
- "oxlint": ">= 1.88.0",
109
- "oxlint-tsgolint": ">= 7.0.2004"
107
+ "eslint": ">= 10.13.0",
108
+ "oxfmt": ">= 0.74.0",
109
+ "oxlint": ">= 1.90.0",
110
+ "oxlint-tsgolint": ">= 7.0.2005"
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
  }
@@ -296,6 +296,10 @@ export const typescriptRules = {
296
296
  // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unsafe-declaration-merging.html
297
297
  'typescript/no-unsafe-declaration-merging': 'error',
298
298
 
299
+ // Disallow assigning a non-enum value where an enum value is expected
300
+ // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unsafe-enum-assignment.html
301
+ 'typescript/no-unsafe-enum-assignment': 'error',
302
+
299
303
  // Disallow comparing an enum value with a non-enum value
300
304
  // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unsafe-enum-comparison.html
301
305
  'typescript/no-unsafe-enum-comparison': 'error',