Skip to content

Available Rules

  • 🌟 mark: the rule which is enabled by @eslint-community/eslint-comments/recommended preset.
  • ✒️ mark: the rule which is fixable by eslint --fix command.

Best Practices

Rule IDDescription
@eslint-community/eslint-comments/disable-enable-pairrequire a eslint-enable comment for every eslint-disable comment🌟
@eslint-community/eslint-comments/no-aggregating-enabledisallow a eslint-enable comment for multiple eslint-disable comments🌟
@eslint-community/eslint-comments/no-duplicate-disabledisallow duplicate eslint-disable comments🌟
@eslint-community/eslint-comments/no-unlimited-disabledisallow eslint-disable comments without rule names🌟
@eslint-community/eslint-comments/no-unused-disabledisallow unused eslint-disable comments
@eslint-community/eslint-comments/no-unused-enabledisallow unused eslint-enable comments🌟

Stylistic Issues

Rule IDDescription
@eslint-community/eslint-comments/no-restricted-disabledisallow eslint-disable comments about specific rules
@eslint-community/eslint-comments/no-usedisallow ESLint directive-comments
@eslint-community/eslint-comments/require-descriptionrequire include descriptions in ESLint directive-comments