Skip to content

Commit c55a956

Browse files
authored
Docs: ensure rule doc titles match rule descriptions (#147)
* Start rule doc titles with a capital letter * Test to ensure rule doc titles include the description from rule.meta.docs.description
1 parent e825c56 commit c55a956

15 files changed

+24
-16
lines changed

docs/rules/meta-property-ordering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# enforce ordering of meta properties in rule source (meta-property-ordering)
1+
# Enforce the order of meta properties (meta-property-ordering)
22

33
⚒️ The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#-fix) can automatically fix some of the problems reported by this rule.
44

docs/rules/no-deprecated-context-methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Disallows usage of deprecated methods on rule context objects (no-deprecated-context-methods)
1+
# Disallow usage of deprecated methods on rule context objects (no-deprecated-context-methods)
22

33
⚒️ The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#-fix) can automatically fix some of the problems reported by this rule.
44

docs/rules/no-deprecated-report-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# disallow use of the deprecated context.report() API (no-deprecated-report-api)
1+
# Disallow use of the deprecated context.report() API (no-deprecated-report-api)
22

33
✔️ The `"extends": "plugin:eslint-plugin/recommended"` property in a configuration file enables this rule.
44

docs/rules/prefer-output-null.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Disallows invalid RuleTester test cases with the output the same as the code. (prefer-output-null)
1+
# Disallow invalid RuleTester test cases with the output the same as the code. (prefer-output-null)
22

33
⚒️ The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#-fix) can automatically fix some of the problems reported by this rule.
44

docs/rules/prefer-placeholders.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# disallow template literals as report messages (prefer-placeholders)
1+
# Disallow template literals as report messages (prefer-placeholders)
22

33
Report messages in rules can have placeholders surrounded by curly brackets.
44

docs/rules/prefer-replace-text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# prefer using replaceText instead of replaceTextRange. (prefer-replace-text)
1+
# Require using replaceText instead of replaceTextRange. (prefer-replace-text)
22

33
## Rule Details
44

docs/rules/report-message-format.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# enforce a consistent format for rule report messages (report-message-format)
1+
# Enforce a consistent format for rule report messages (report-message-format)
22

33
It is sometimes desirable to maintain consistent formatting for all report messages. For example, you might want to mandate that all report messages begin with a capital letter and end with a period.
44

docs/rules/require-meta-docs-description.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# require rules to implement a meta.docs.description property (require-meta-docs-description)
1+
# Require rules to implement a meta.docs.description property with the correct format (require-meta-docs-description)
22

33
Defining a clear and consistent description for each rule helps developers understand what they're used for.
44

docs/rules/require-meta-docs-url.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# require rules to implement a meta.docs.url property (require-meta-docs-url)
1+
# Require rules to implement a meta.docs.url property (require-meta-docs-url)
22

33
⚒️ The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#-fix) can automatically fix some of the problems reported by this rule.
44

docs/rules/require-meta-fixable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# require rules to implement a meta.fixable property (require-meta-fixable)
1+
# Require rules to implement a meta.fixable property (require-meta-fixable)
22

33
✔️ The `"extends": "plugin:eslint-plugin/recommended"` property in a configuration file enables this rule.
44

0 commit comments

Comments
 (0)