@wistia/oxlint-config 0.9.1 → 0.9.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/package.json +1 -1
- package/rules/base.mjs +1 -2
- package/rules/typescript.mjs +5 -0
- package/rules/unicorn.mjs +4 -1
package/package.json
CHANGED
package/rules/base.mjs
CHANGED
|
@@ -804,8 +804,7 @@ export const baseRules = {
|
|
|
804
804
|
|
|
805
805
|
// Disallow assignments that are never used
|
|
806
806
|
// https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-assignment.html
|
|
807
|
-
|
|
808
|
-
'eslint/no-useless-assignment': 'off',
|
|
807
|
+
'eslint/no-useless-assignment': 'error',
|
|
809
808
|
|
|
810
809
|
// Disallow unnecessary calls to .call() and .apply()
|
|
811
810
|
// https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-call.html
|
package/rules/typescript.mjs
CHANGED
|
@@ -19,6 +19,11 @@ export const typescriptRules = {
|
|
|
19
19
|
// Decision: handled by TypeScript noUnusedLocals/noUnusedParameters
|
|
20
20
|
'eslint/no-unused-vars': 'off',
|
|
21
21
|
|
|
22
|
+
// Disallow assignments that are never used
|
|
23
|
+
// https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-assignment.html
|
|
24
|
+
// Decision: handled by TypeScript noUnusedLocals
|
|
25
|
+
'eslint/no-useless-assignment': 'off',
|
|
26
|
+
|
|
22
27
|
// Recommended to be disabled for TypeScript projects
|
|
23
28
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/docs/linting/TROUBLESHOOTING.md#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
|
|
24
29
|
// Decision: handled by TypeScript
|
package/rules/unicorn.mjs
CHANGED
|
@@ -289,7 +289,10 @@ export const unicornRules = {
|
|
|
289
289
|
|
|
290
290
|
// Disallow useless `case` in `switch` statements
|
|
291
291
|
// https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-useless-switch-case.html
|
|
292
|
-
|
|
292
|
+
// Decision: an empty `case` listed alongside `default` documents that the
|
|
293
|
+
// value is a known, expected input rather than an unhandled fallthrough,
|
|
294
|
+
// which is useful for exhaustive switches over discriminated unions.
|
|
295
|
+
'unicorn/no-useless-switch-case': 'off',
|
|
293
296
|
|
|
294
297
|
// Disallow explicit `undefined` arguments and default parameter values
|
|
295
298
|
// https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-useless-undefined.html
|