@wistia/oxlint-config 0.9.1 → 0.9.2
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/unicorn.mjs +4 -1
package/package.json
CHANGED
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
|