From c2b1408850123ddca6cd5a58df4be76d2c039732 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Wed, 26 Apr 2023 19:43:17 +0200 Subject: [PATCH] chore: eslint report-unused-disable-directives (#2097) --- .eslintrc.js | 1 + package.json | 2 +- src/internal/deprecated.ts | 1 - test/locale-imports.spec.ts | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 28b76bdf039..e0b62edef9b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -12,6 +12,7 @@ module.exports = defineConfig({ browser: true, node: true, }, + reportUnusedDisableDirectives: true, extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', diff --git a/package.json b/package.json index 7d1cbe64aaf..80e7f7b1b4a 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "docs:serve": "vitepress serve docs --port 5173", "docs:diff": "tsx ./scripts/diff.ts", "format": "prettier --cache --write .", - "lint": "eslint --cache --cache-strategy content .", + "lint": "eslint --cache --cache-strategy content --report-unused-disable-directives .", "ts-check": "run-s ts-check:scripts ts-check:tests", "ts-check:scripts": "tsc --project tsconfig.check-scripts.json", "ts-check:tests": "tsc --project tsconfig.check-tests.json", diff --git a/src/internal/deprecated.ts b/src/internal/deprecated.ts index a49e64f640d..fe2cdc94ddd 100644 --- a/src/internal/deprecated.ts +++ b/src/internal/deprecated.ts @@ -1,4 +1,3 @@ -/* eslint-disable jsdoc/check-tag-names */ /* eslint-disable jsdoc/require-param */ /** diff --git a/test/locale-imports.spec.ts b/test/locale-imports.spec.ts index 2a691b269d4..5d12ded5525 100644 --- a/test/locale-imports.spec.ts +++ b/test/locale-imports.spec.ts @@ -77,7 +77,6 @@ describe('locale imports', () => { }); it(`should be possible to directly import('../src/locale/${locale}')`, async () => { - // eslint-disable-next-line @typescript-eslint/no-var-requires const { faker } = await import(`../src/locale/${locale}`); expect(faker).toBeDefined();