Skip to content

Commit

Permalink
chore: enable eslint-plugin/require-meta-docs-description rule
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish committed Nov 11, 2022
1 parent 832cec6 commit f192f21
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.js
Expand Up @@ -257,6 +257,11 @@ module.exports = {
'./packages/eslint-plugin/src/rules/**/*.ts',
],
rules: {
'eslint-plugin/require-meta-docs-description': [
'error',
{ pattern: '^(Enforce|Require|Disallow) .+[^. ]$' },
],

// specifically for rules - default exports makes the tooling easier
'import/no-default-export': 'off',
},
Expand Down
Expand Up @@ -35,7 +35,7 @@ export default createRule({
type: 'problem',
docs: {
description:
"Enforces rules don't use TS API properties with known bad type definitions",
"Enforce that rules don't use TS API properties with known bad type definitions",
recommended: 'error',
requiresTypeChecking: true,
},
Expand Down
Expand Up @@ -20,7 +20,7 @@ export default createRule({
type: 'problem',
docs: {
description:
"Enforces that packages rules don't do `import ts from 'typescript';`",
"Enforce that packages rules don't do `import ts from 'typescript';`",
recommended: 'error',
},
fixable: 'code',
Expand Down
Expand Up @@ -15,7 +15,7 @@ export default createRule({
meta: {
type: 'problem',
docs: {
description: `Enforces that eslint-plugin rules don't require anything from ${TSESTREE_NAME} or ${TYPES_NAME}`,
description: `Enforce that eslint-plugin rules don't require anything from ${TSESTREE_NAME} or ${TYPES_NAME}`,
recommended: 'error',
},
fixable: 'code',
Expand Down
Expand Up @@ -107,7 +107,7 @@ export default createRule<Options, MessageIds>({
meta: {
type: 'problem',
docs: {
description: `Enforces that eslint-plugin test snippets are correctly formatted`,
description: `Enforce that eslint-plugin test snippets are correctly formatted`,
recommended: 'error',
requiresTypeChecking: true,
},
Expand Down
Expand Up @@ -15,7 +15,7 @@ export default createRule({
docs: {
recommended: 'error',
description:
'Ensures consistent usage of `AST_NODE_TYPES`, `AST_TOKEN_TYPES` and `DefinitionType` enums.',
'Enforce consistent usage of `AST_NODE_TYPES`, `AST_TOKEN_TYPES` and `DefinitionType` enums',
},
messages: {
preferEnum: 'Prefer {{ enumName }}.{{ literal }} over raw literal',
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-tslint/src/rules/config.ts
Expand Up @@ -64,7 +64,7 @@ export default createRule<Options, MessageIds>({
meta: {
docs: {
description:
'Wraps a TSLint configuration and lints the whole source using TSLint',
'Wraps a TSLint configuration and lints the whole source using TSLint', // eslint-disable-line eslint-plugin/require-meta-docs-description
recommended: false,
},
fixable: 'code',
Expand Down

0 comments on commit f192f21

Please sign in to comment.