From 8ce457824cbd0a6f7f15b9b457c7d118541a69ae Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Sun, 13 Oct 2024 09:06:54 +0700 Subject: [PATCH] feat!: linterOptions.reportUnusedDisableDirectives error closes #1513 --- eslint.config.cjs | 3 --- src/index.ts | 4 ++++ src/test/_expected-exported-value.ts | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/eslint.config.cjs b/eslint.config.cjs index df8250cc..5b1fa75f 100644 --- a/eslint.config.cjs +++ b/eslint.config.cjs @@ -3,9 +3,6 @@ module.exports = [ require('.'), { files: ['**/*.cjs', '**/*.js', '**/*.ts'], - linterOptions: { - reportUnusedDisableDirectives: 'error', - }, languageOptions: { parserOptions: { projectService: { diff --git a/src/index.ts b/src/index.ts index 32f4d780..f3def73a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,6 +14,10 @@ const namesOfEslintRulesForWhichWeAreUsingTsEquivalents = ) const config: TSESLint.FlatConfig.Config = { + linterOptions: { + reportUnusedDisableDirectives: 'error', + }, + languageOptions: { parser, parserOptions: { diff --git a/src/test/_expected-exported-value.ts b/src/test/_expected-exported-value.ts index bc15fd69..aa52b87b 100644 --- a/src/test/_expected-exported-value.ts +++ b/src/test/_expected-exported-value.ts @@ -447,6 +447,10 @@ export const expectedExportedRules = { } export const expectedExportedValue: TSESLint.FlatConfig.Config = { + linterOptions: { + reportUnusedDisableDirectives: 'error', + }, + languageOptions: { parser, parserOptions: {