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
Copy file name to clipboardExpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ module.exports = [
99
99
|[prefer-replace-text](docs/rules/prefer-replace-text.md)| require using `replaceText()` instead of `replaceTextRange()`|||||
100
100
|[report-message-format](docs/rules/report-message-format.md)| enforce a consistent format for rule report messages |||||
101
101
|[require-meta-docs-description](docs/rules/require-meta-docs-description.md)| require rules to implement a `meta.docs.description` property with the correct format |||||
102
-
|[require-meta-docs-recommended](docs/rules/require-meta-docs-recommended.md)| require rules to implement a `meta.docs.recommended` property |||||
102
+
|[require-meta-docs-recommended](docs/rules/require-meta-docs-recommended.md)| require rules to implement a `meta.docs.recommended` property |||💡||
103
103
|[require-meta-docs-url](docs/rules/require-meta-docs-url.md)| require rules to implement a `meta.docs.url` property || 🔧 |||
104
104
|[require-meta-fixable](docs/rules/require-meta-fixable.md)| require rules to implement a `meta.fixable` property | ✅ ||||
105
105
|[require-meta-has-suggestions](docs/rules/require-meta-has-suggestions.md)| require suggestable rules to implement a `meta.hasSuggestions` property | ✅ | 🔧 |||
Copy file name to clipboardExpand all lines: docs/rules/fixer-return.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
<!-- end auto-generated rule header -->
6
6
7
-
In a [fixable](https://eslint.org/docs/developer-guide/working-with-rules#applying-fixes) rule, a fixer function is useless if it never returns anything.
7
+
In a [fixable](https://eslint.org/docs/latest/extend/custom-rules#applying-fixes) rule, a fixer function is useless if it never returns anything.
Copy file name to clipboardExpand all lines: docs/rules/no-deprecated-context-methods.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ The deprecated methods are:
31
31
-`getTokensBefore`
32
32
-`getTokensBetween`
33
33
34
-
Instead of using these methods, you should use the equivalent methods on [`SourceCode`](https://eslint.org/docs/developer-guide/working-with-rules#contextgetsourcecode), e.g. `context.getSourceCode().getText()` instead of `context.getSource()`.
34
+
Instead of using these methods, you should use the equivalent methods on [`SourceCode`](https://eslint.org/docs/latest/extend/custom-rules#accessing-the-source-code), e.g. `context.sourceCode.getText()` instead of `context.getSource()`.
35
35
36
36
## Rule Details
37
37
@@ -71,4 +71,4 @@ If you need to support very old versions of ESLint where `SourceCode` doesn't ex
Copy file name to clipboardExpand all lines: docs/rules/no-deprecated-report-api.md
+3-4
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@
8
8
9
9
ESLint has two APIs that rules can use to report problems.
10
10
11
-
- The [deprecated API](http://eslint.org/docs/developer-guide/working-with-rules-deprecated) accepts multiple arguments: `context.report(node, [loc], message)`.
12
-
- The ["new API"](http://eslint.org/docs/developer-guide/working-with-rules#contextreport) accepts a single argument: an object containing information about the reported problem.
11
+
- The [deprecated API](https://eslint.org/docs/latest/extend/custom-rules-deprecated) accepts multiple arguments: `context.report(node, [loc], message)`.
12
+
- The ["new API"](https://eslint.org/docs/latest/extend/custom-rules#reporting-problems) accepts a single argument: an object containing information about the reported problem.
Copy file name to clipboardExpand all lines: docs/rules/prefer-object-rule.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
<!-- end auto-generated rule header -->
8
8
9
-
Prior to ESLint v9, ESLint supported both [function-style](https://eslint.org/docs/developer-guide/working-with-rules-deprecated) and [object-style](https://eslint.org/docs/developer-guide/working-with-rules) rules. However, function-style rules have been deprecated since 2016, and do not support newer features like autofixing and suggestions.
9
+
Prior to ESLint v9, ESLint supported both [function-style](https://eslint.org/docs/latest/extend/custom-rules-deprecated) and [object-style](https://eslint.org/docs/latest/extend/custom-rules) rules. However, function-style rules have been deprecated since 2016, and do not support newer features like autofixing and suggestions.
10
10
11
11
As of [ESLint v9](https://github.com/eslint/rfcs/tree/main/designs/2021-schema-object-rules#motivation-for-requiring-object-style-rules), ESLint supports only object-style rules.
Copy file name to clipboardExpand all lines: docs/rules/require-meta-docs-recommended.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Require rules to implement a `meta.docs.recommended` property (`eslint-plugin/require-meta-docs-recommended`)
2
2
3
+
💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
4
+
3
5
<!-- end auto-generated rule header -->
4
6
5
7
Utilizing `meta.docs.recommended` makes it clear from each rule implementation whether a rule is part of the `recommended` config. Some plugins also have scripting for conveniently generating their config based on this flag.
0 commit comments