@wistia/oxlint-config 1.12.12 → 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 +16 -0
- package/package.json +5 -5
- package/rules/typescript.mjs +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
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
|
+
|
|
3
19
|
## 1.12.12
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/oxlint-config",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.13",
|
|
4
4
|
"packageManager": "yarn@4.18.1",
|
|
5
5
|
"description": "Wistia's Oxlint configurations",
|
|
6
6
|
"keywords": [
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"@changesets/cli": "^3.0.3",
|
|
98
98
|
"eslint": "^10.13.0",
|
|
99
99
|
"oxfmt": "^0.74.0",
|
|
100
|
-
"oxlint": "^1.
|
|
101
|
-
"oxlint-tsgolint": "^7.0.
|
|
100
|
+
"oxlint": "^1.90.0",
|
|
101
|
+
"oxlint-tsgolint": "^7.0.2005",
|
|
102
102
|
"storybook": "^10.6.3",
|
|
103
103
|
"vite": "^8.3.4",
|
|
104
104
|
"vitest": "^5.0.5"
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
"peerDependencies": {
|
|
107
107
|
"eslint": ">= 10.13.0",
|
|
108
108
|
"oxfmt": ">= 0.74.0",
|
|
109
|
-
"oxlint": ">= 1.
|
|
110
|
-
"oxlint-tsgolint": ">= 7.0.
|
|
109
|
+
"oxlint": ">= 1.90.0",
|
|
110
|
+
"oxlint-tsgolint": ">= 7.0.2005"
|
|
111
111
|
},
|
|
112
112
|
"peerDependenciesMeta": {
|
|
113
113
|
"oxfmt": {
|
package/rules/typescript.mjs
CHANGED
|
@@ -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',
|