Skip to content

Commit

Permalink
Merge pull request #1920 from mightyiam/eslint-comments
Browse files Browse the repository at this point in the history
feat!: eslint-comments/disable-enable-pair
  • Loading branch information
mightyiam authored Nov 23, 2024
2 parents 73f7501 + 8668647 commit 95a9083
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/plugin-usage/eslint-comments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const usage: PluginUsage = {
pluginName: 'eslint-comments',
plugin,
rules: {
'disable-enable-pair': ['error', { allowWholeFile: true }],
'require-description': [
'error',
{
Expand Down
1 change: 1 addition & 0 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const expectedEslintCommentsRules: Record<
string,
TSESLint.SharedConfig.RuleEntry
> = {
'eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }],
'eslint-comments/require-description': [
'error',
{
Expand Down
1 change: 0 additions & 1 deletion src/test/_rules_to_consider.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export const rulesToConsider: Record<string, string[]> = {
'eslint-comments': [
'eslint-comments/disable-enable-pair',
'eslint-comments/no-aggregating-enable',
'eslint-comments/no-duplicate-disable',
'eslint-comments/no-restricted-disable',
Expand Down

0 comments on commit 95a9083

Please sign in to comment.