@wistia/oxlint-config 0.9.2 → 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/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
|