You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Fix false positives/negatives in require-meta-fixable rule
False positives fixed:
* When `meta.fixable` uses a variable
False negatives fixed:
* When there's a fixer but `meta.fixable` = null
* When there's a fixer but `meta.fixable` = undefined
Also improves reporting location.
Copy file name to clipboardExpand all lines: docs/rules/require-meta-fixable.md
+4-21
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,19 @@
2
2
3
3
✔️ The `"extends": "plugin:eslint-plugin/recommended"` property in a configuration file enables this rule.
4
4
5
-
A fixable ESLint rule must have a valid `meta.fixable` property. A rule reports a problem with a `fix()` function but does not export a `meta.fixable` property is likely to cause an unexpected error.
5
+
ESLint requires fixable rules to specify a valid `meta.fixable` property (with value `code` or `whitespace`).
6
6
7
7
## Rule Details
8
8
9
-
This rule aims to require ESLint rules to have a `meta.fixable` property if necessary.
9
+
This rule aims to require fixable ESLint rules to have a valid `meta.fixable` property.
0 commit comments