@clipboard-health/oxlint-config 1.26.2 → 1.26.3
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/README.md +1 -0
- package/package.json +2 -2
- package/src/base.json +1 -0
package/README.md
CHANGED
|
@@ -211,6 +211,7 @@ The package includes:
|
|
|
211
211
|
|
|
212
212
|
`base.json` cannot hold comments, so the reasoning for non-obvious "off" entries lives here (audited against clipboard-health on oxlint 1.60, 2026-06-11):
|
|
213
213
|
|
|
214
|
+
- **`typescript/no-invalid-void-type`**: valid completion APIs use generic calls such as `Promise.withResolvers<void>()` and `http.get<void>()`. Even with `allowInGenericTypeArguments: true`, the rule rejects call-expression type arguments; this restriction is inherited from typescript-eslint, rather than an Oxlint port difference. Changing these APIs to `undefined` can change their public signatures: a `void` resolver permits `resolve()` without an argument. Keep the other TypeScript correctness and unsafe-operation guards enabled.
|
|
214
215
|
- **`typescript/consistent-type-imports`**: oxlint's port is not `emitDecoratorMetadata`-aware (even type-aware with the flag in the tsconfig chain), so it flags NestJS constructor-injected classes as type-only. Applying its fix converts DI tokens to `import type`, which SWC erases from `design:paramtypes` metadata, breaking injection at runtime. Do not enable in NestJS repos until oxlint matches typescript-eslint's decorator handling.
|
|
215
216
|
- **`jest/no-confusing-set-timeout`** (jest preset): false-positive explosion — when a jest setup file calls `jest.setTimeout`, the rule flags spec files that contain no `setTimeout` call at all (265k diagnostics across 764 clean files). The vitest preset carries no `jest/*` keys at all: under oxlint ≥1.68 with only the vitest plugin enabled, `jest/*` config keys are silently ignored, and jest-plugin-only rules (such as this one and `jest/prefer-ending-with-an-expect`) cannot fire — `vitest/no-confusing-set-timeout` is not a registered rule name, so an "off" entry for it fails config parsing.
|
|
216
217
|
- **`import/no-named-as-default` / `import/no-named-as-default-member`**: low signal; they flag legitimate default-export import patterns far more often than real mistakes (870 hits, ~0 bugs).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/oxlint-config",
|
|
3
|
-
"version": "1.26.
|
|
3
|
+
"version": "1.26.3",
|
|
4
4
|
"description": "Shared Oxlint configuration for Clipboard Health repositories.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@clipboard-health/oxlint-plugin": "1.4.
|
|
23
|
+
"@clipboard-health/oxlint-plugin": "1.4.2"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"oxlint": ">=1.68.0",
|
package/src/base.json
CHANGED
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
"typescript/explicit-module-boundary-types": "off",
|
|
98
98
|
"typescript/no-extraneous-class": ["error", { "allowWithDecorator": true }],
|
|
99
99
|
"typescript/no-import-type-side-effects": "off",
|
|
100
|
+
"typescript/no-invalid-void-type": "off",
|
|
100
101
|
"typescript/no-unnecessary-type-parameters": "off",
|
|
101
102
|
"typescript/parameter-properties": "off",
|
|
102
103
|
"typescript/prefer-readonly-parameter-types": "off",
|