Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion e2e/fixtures/all-typed-config/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const rule = {
meta: {
type: 'suggestion',
docs: {
description: 'enforce a test',
description: 'Enforce a test',
recommended: false,
url: 'https://test.org',
},
Expand Down
2 changes: 1 addition & 1 deletion e2e/fixtures/all/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const rule = {
meta: {
type: 'suggestion',
docs: {
description: 'enforce a test',
description: 'Enforce a test',
recommended: false,
url: 'https://test.org',
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/consistent-output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const rule: Rule.RuleModule = {
type: 'suggestion',
docs: {
description:
'enforce consistent use of `output` assertions in rule tests',
'Enforce consistent use of `output` assertions in rule tests',
category: 'Tests',
recommended: false,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/consistent-output.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/fixer-return.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const rule: Rule.RuleModule = {
meta: {
type: 'problem',
docs: {
description: 'require fixer functions to return a fix',
description: 'Require fixer functions to return a fix',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/fixer-return.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/meta-property-ordering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const rule: Rule.RuleModule = {
meta: {
type: 'suggestion',
docs: {
description: 'enforce the order of meta properties',
description: 'Enforce the order of meta properties',
category: 'Rules',
recommended: false,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/meta-property-ordering.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-deprecated-context-methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const rule: Rule.RuleModule = {
type: 'suggestion',
docs: {
description:
'disallow usage of deprecated methods on rule context objects',
'Disallow usage of deprecated methods on rule context objects',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-deprecated-context-methods.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-deprecated-report-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const rule: Rule.RuleModule = {
type: 'suggestion',
docs: {
description:
'disallow the version of `context.report()` with multiple arguments',
'Disallow the version of `context.report()` with multiple arguments',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-deprecated-report-api.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-identical-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const rule: Rule.RuleModule = {
meta: {
type: 'problem',
docs: {
description: 'disallow identical tests',
description: 'Disallow identical tests',
category: 'Tests',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-identical-tests.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-meta-replaced-by.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const rule: Rule.RuleModule = {
meta: {
type: 'problem',
docs: {
description: 'disallow using the `meta.replacedBy` rule property',
description: 'Disallow using the `meta.replacedBy` rule property',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-meta-replaced-by.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-meta-schema-default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const rule: Rule.RuleModule = {
type: 'suggestion',
docs: {
description:
'disallow rules `meta.schema` properties to include defaults',
'Disallow rules `meta.schema` properties to include defaults',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-meta-schema-default.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-missing-message-ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const rule: Rule.RuleModule = {
type: 'problem',
docs: {
description:
'disallow `messageId`s that are missing from `meta.messages`',
'Disallow `messageId`s that are missing from `meta.messages`',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-missing-message-ids.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-missing-placeholders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const rule: Rule.RuleModule = {
meta: {
type: 'problem',
docs: {
description: 'disallow missing placeholders in rule report messages',
description: 'Disallow missing placeholders in rule report messages',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-missing-placeholders.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-only-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const rule: Rule.RuleModule = {
meta: {
type: 'problem',
docs: {
description: 'disallow the test case property `only`',
description: 'Disallow the test case property `only`',
category: 'Tests',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-only-tests.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-property-in-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const rule: Rule.RuleModule = {
type: 'suggestion',
docs: {
description:
'disallow using `in` to narrow node types instead of looking at properties',
'Disallow using `in` to narrow node types instead of looking at properties',
category: 'Rules',
recommended: false,
// @ts-expect-error -- need to augment the type of `Rule.RuleMetaData` to include `requiresTypeChecking`
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-unused-message-ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const rule: Rule.RuleModule = {
meta: {
type: 'problem',
docs: {
description: 'disallow unused `messageId`s in `meta.messages`',
description: 'Disallow unused `messageId`s in `meta.messages`',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-unused-message-ids.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-unused-placeholders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const rule: Rule.RuleModule = {
meta: {
type: 'problem',
docs: {
description: 'disallow unused placeholders in rule report messages',
description: 'Disallow unused placeholders in rule report messages',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-unused-placeholders.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-useless-token-range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const rule: Rule.RuleModule = {
type: 'suggestion',
docs: {
description:
'disallow unnecessary calls to `sourceCode.getFirstToken()` and `sourceCode.getLastToken()`',
'Disallow unnecessary calls to `sourceCode.getFirstToken()` and `sourceCode.getLastToken()`',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-useless-token-range.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/prefer-message-ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const rule: Rule.RuleModule = {
type: 'problem',
docs: {
description:
'require using `messageId` instead of `message` or `desc` to report rule violations',
'Require using `messageId` instead of `message` or `desc` to report rule violations',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/prefer-message-ids.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/prefer-object-rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const rule: Rule.RuleModule = {
meta: {
type: 'suggestion',
docs: {
description: 'disallow function-style rules',
description: 'Disallow function-style rules',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/prefer-object-rule.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/prefer-output-null.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const rule: Rule.RuleModule = {
type: 'suggestion',
docs: {
description:
'disallow invalid RuleTester test cases where the `output` matches the `code`',
'Disallow invalid RuleTester test cases where the `output` matches the `code`',
category: 'Tests',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/prefer-output-null.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/prefer-placeholders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const rule: Rule.RuleModule = {
meta: {
type: 'suggestion',
docs: {
description: 'require using placeholders for dynamic report messages',
description: 'Require using placeholders for dynamic report messages',
category: 'Rules',
recommended: false,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/prefer-placeholders.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/prefer-replace-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const rule: Rule.RuleModule = {
type: 'suggestion',
docs: {
description:
'require using `replaceText()` instead of `replaceTextRange()`',
'Require using `replaceText()` instead of `replaceTextRange()`',
category: 'Rules',
recommended: false,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/prefer-replace-text.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/report-message-format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const rule: Rule.RuleModule = {
meta: {
type: 'suggestion',
docs: {
description: 'enforce a consistent format for rule report messages',
description: 'Enforce a consistent format for rule report messages',
category: 'Rules',
recommended: false,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/report-message-format.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-meta-default-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const rule: Rule.RuleModule = {
type: 'suggestion',
docs: {
description:
'require only rules with options to implement a `meta.defaultOptions` property',
'Require only rules with options to implement a `meta.defaultOptions` property',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-default-options.md',
Expand Down
8 changes: 4 additions & 4 deletions lib/rules/require-meta-docs-description.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import type { Rule } from 'eslint';

import { getMetaDocsProperty, getRuleInfo } from '../utils.ts';

const DEFAULT_PATTERN = new RegExp('^(enforce|require|disallow)');
const DEFAULT_PATTERN = new RegExp('^(Enforce|Require|Disallow)');

const rule: Rule.RuleModule = {
meta: {
type: 'suggestion',
docs: {
description:
'require rules to implement a `meta.docs.description` property with the correct format',
'Require rules to implement a `meta.docs.description` property with the correct format',
category: 'Rules',
recommended: false,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-docs-description.md',
Expand All @@ -24,13 +24,13 @@ const rule: Rule.RuleModule = {
type: 'string',
description:
"A regular expression that the description must match. Use `'.+'` to allow anything.",
default: '^(enforce|require|disallow)',
default: '^(Enforce|Require|Disallow)',
},
},
additionalProperties: false,
},
],
defaultOptions: [{ pattern: '^(enforce|require|disallow)' }],
defaultOptions: [{ pattern: '^(Enforce|Require|Disallow)' }],
messages: {
extraWhitespace:
'`meta.docs.description` must not have leading nor trailing whitespace.',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-meta-docs-recommended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const rule: Rule.RuleModule = {
type: 'suggestion',
docs: {
description:
'require rules to implement a `meta.docs.recommended` property',
'Require rules to implement a `meta.docs.recommended` property',
category: 'Rules',
recommended: false,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-docs-recommended.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-meta-docs-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const rule: Rule.RuleModule = {
meta: {
type: 'suggestion',
docs: {
description: 'require rules to implement a `meta.docs.url` property',
description: 'Require rules to implement a `meta.docs.url` property',
category: 'Rules',
recommended: false,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-docs-url.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-meta-fixable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const rule: Rule.RuleModule = {
meta: {
type: 'problem',
docs: {
description: 'require rules to implement a `meta.fixable` property',
description: 'Require rules to implement a `meta.fixable` property',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-fixable.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-meta-has-suggestions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const rule: Rule.RuleModule = {
type: 'problem',
docs: {
description:
'require suggestable rules to implement a `meta.hasSuggestions` property',
'Require suggestable rules to implement a `meta.hasSuggestions` property',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-has-suggestions.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-meta-schema-description.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const rule: Rule.RuleModule = {
type: 'suggestion',
docs: {
description:
'require rules `meta.schema` properties to include descriptions',
'Require rules `meta.schema` properties to include descriptions',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-schema-description.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-meta-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const rule: Rule.RuleModule = {
meta: {
type: 'suggestion',
docs: {
description: 'require rules to implement a `meta.schema` property',
description: 'Require rules to implement a `meta.schema` property',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-schema.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/require-meta-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const rule: Rule.RuleModule = {
meta: {
type: 'problem',
docs: {
description: 'require rules to implement a `meta.type` property',
description: 'Require rules to implement a `meta.type` property',
category: 'Rules',
recommended: true,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-type.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/test-case-property-ordering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const rule: Rule.RuleModule = {
type: 'suggestion',
docs: {
description:
'require the properties of a test case to be placed in a consistent order',
'Require the properties of a test case to be placed in a consistent order',
category: 'Tests',
recommended: false,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/test-case-property-ordering.md',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/test-case-shorthand-strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const rule: Rule.RuleModule = {
type: 'suggestion',
docs: {
description:
'enforce consistent usage of shorthand strings for test cases with no options',
'Enforce consistent usage of shorthand strings for test cases with no options',
category: 'Tests',
recommended: false,
url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/test-case-shorthand-strings.md',
Expand Down
Loading
Loading