From e60dd7954708347f7141a00cce917696cecc9c9d Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Sat, 23 Nov 2024 16:47:19 +0700 Subject: [PATCH] feat!: eslint-comments/no-duplicate-disable --- src/plugin-usage/eslint-comments.ts | 1 + src/test/_expected-exported-value.ts | 1 + src/test/_rules_to_consider.ts | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugin-usage/eslint-comments.ts b/src/plugin-usage/eslint-comments.ts index b8c23298..7a66685c 100644 --- a/src/plugin-usage/eslint-comments.ts +++ b/src/plugin-usage/eslint-comments.ts @@ -7,6 +7,7 @@ const usage: PluginUsage = { rules: { 'disable-enable-pair': ['error', { allowWholeFile: true }], 'no-aggregating-enable': ['error'], + 'no-duplicate-disable': ['error'], 'require-description': [ 'error', { diff --git a/src/test/_expected-exported-value.ts b/src/test/_expected-exported-value.ts index 35e7c229..8c6bd0b6 100644 --- a/src/test/_expected-exported-value.ts +++ b/src/test/_expected-exported-value.ts @@ -11,6 +11,7 @@ export const expectedEslintCommentsRules: Record< > = { 'eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }], 'eslint-comments/no-aggregating-enable': ['error'], + 'eslint-comments/no-duplicate-disable': ['error'], 'eslint-comments/require-description': [ 'error', { diff --git a/src/test/_rules_to_consider.ts b/src/test/_rules_to_consider.ts index 4f0a09bf..fb91509f 100644 --- a/src/test/_rules_to_consider.ts +++ b/src/test/_rules_to_consider.ts @@ -1,6 +1,5 @@ export const rulesToConsider: Record = { 'eslint-comments': [ - 'eslint-comments/no-duplicate-disable', 'eslint-comments/no-restricted-disable', 'eslint-comments/no-unlimited-disable', 'eslint-comments/no-unused-disable',