@wistia/oxlint-config 1.12.12 → 1.12.14

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,39 @@
1
1
  # @wistia/oxlint-config
2
2
 
3
+ ## 1.12.14
4
+
5
+ ### Patch Changes
6
+
7
+ - [#216](https://github.com/wistia/oxlint-config/pull/216) [`cad5fbf`](https://github.com/wistia/oxlint-config/commit/cad5fbfa94cd4e09da8a4f0567fb9fcfb0e13569) Thanks [@okize](https://github.com/okize)! - build(deps): upgrade `oxlint` to v1.91.0
8
+
9
+ - Bump peer minimum: `oxlint` to `>= 1.91.0`
10
+ - No new, renamed, or removed rules
11
+ - Rules already set to `error` that now report more code, no config change required:
12
+ - `eslint/no-control-regex` detects raw control characters
13
+ - Rules already set to `error` that now report less code, no config change required:
14
+ - `unicorn/no-invalid-fetch-options` no longer treats unknown methods as `GET`
15
+ - `react/purity` ignores impure calls in async components
16
+ - React Compiler rules run only on files with top-level components or hooks, and treat Reanimated shared values as ref-like
17
+ - `unicorn/no-useless-error-capture-stack-trace` and `typescript/no-non-null-asserted-nullish-coalescing` move to the `suspicious` category. Both are set to `error` explicitly, so no effect
18
+ - `react/capitalized-calls` gains `allow` and `allowPattern` options. It is set to `off`, so no effect
19
+ - Rules set to `off`, no effect: `unicorn/prefer-global-this` (aligns `typeof` and worker API handling)
20
+
21
+ ## 1.12.13
22
+
23
+ ### Patch Changes
24
+
25
+ - [#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
26
+
27
+ - 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
28
+ - 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
29
+ - Rules already set to `error` that now report more code, no config change required:
30
+ - `eslint/array-callback-return` checks callbacks passed with extra arguments
31
+ - `eslint/no-useless-concat` sees through parenthesized expressions
32
+ - `vitest/no-conditional-expect` checks function expression callbacks
33
+ - Fix changes on rules set to `error`: `eslint/prefer-const` skips the fix when any declarator is reassigned
34
+ - `typescript/await-thenable` gains an `allowMixedPromiseArrays` option. It is off by default, so no effect
35
+ - Rules set to `off`, no effect: `eslint/arrow-body-style` (keeps type assertions when adding a block body)
36
+
3
37
  ## 1.12.12
4
38
 
5
39
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/oxlint-config",
3
- "version": "1.12.12",
3
+ "version": "1.12.14",
4
4
  "packageManager": "yarn@4.18.1",
5
5
  "description": "Wistia's Oxlint configurations",
6
6
  "keywords": [
@@ -77,16 +77,16 @@
77
77
  "validate": "vitest run --project validate"
78
78
  },
79
79
  "dependencies": {
80
- "@eslint-react/eslint-plugin": "^5.28.2",
81
- "@vitest/eslint-plugin": "^1.6.27",
80
+ "@eslint-react/eslint-plugin": "^5.28.8",
81
+ "@vitest/eslint-plugin": "^1.6.28",
82
82
  "confusing-browser-globals": "^1.0.11",
83
83
  "eslint-plugin-barrel-files": "^3.0.1",
84
84
  "eslint-plugin-import-x": "^4.17.1",
85
85
  "eslint-plugin-jest-dom": "^5.10.1",
86
86
  "eslint-plugin-n": "^18.5.0",
87
87
  "eslint-plugin-no-only-tests": "^3.4.0",
88
- "eslint-plugin-playwright": "^2.12.1",
89
- "eslint-plugin-storybook": "^10.6.3",
88
+ "eslint-plugin-playwright": "^2.12.2",
89
+ "eslint-plugin-storybook": "^10.6.5",
90
90
  "eslint-plugin-styled-components": "^0.0.0",
91
91
  "eslint-plugin-styled-components-a11y": "^2.2.1",
92
92
  "eslint-plugin-testing-library": "^7.16.2",
@@ -95,19 +95,19 @@
95
95
  "devDependencies": {
96
96
  "@changesets/changelog-github": "^1.0.1",
97
97
  "@changesets/cli": "^3.0.3",
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",
98
+ "eslint": "^10.14.0",
99
+ "oxfmt": "^0.75.0",
100
+ "oxlint": "^1.91.0",
101
+ "oxlint-tsgolint": "^7.0.2005",
102
+ "storybook": "^10.6.5",
103
+ "vite": "^8.3.5",
104
104
  "vitest": "^5.0.5"
105
105
  },
106
106
  "peerDependencies": {
107
- "eslint": ">= 10.13.0",
108
- "oxfmt": ">= 0.74.0",
109
- "oxlint": ">= 1.89.0",
110
- "oxlint-tsgolint": ">= 7.0.2004"
107
+ "eslint": ">= 10.14.0",
108
+ "oxfmt": ">= 0.75.0",
109
+ "oxlint": ">= 1.91.0",
110
+ "oxlint-tsgolint": ">= 7.0.2005"
111
111
  },
112
112
  "peerDependenciesMeta": {
113
113
  "oxfmt": {
@@ -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',