@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/oxlint-config",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Wistia's Oxlint configurations",
5
5
  "packageManager": "yarn@4.14.1",
6
6
  "type": "module",
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
- 'unicorn/no-useless-switch-case': 'error',
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