Skip to content

Commit

Permalink
chore: eslint report-unused-disable-directives (#2097)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored Apr 26, 2023
1 parent 3fc7bf1 commit c2b1408
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = defineConfig({
browser: true,
node: true,
},
reportUnusedDisableDirectives: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion src/internal/deprecated.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable jsdoc/check-tag-names */
/* eslint-disable jsdoc/require-param */

/**
Expand Down
1 change: 0 additions & 1 deletion test/locale-imports.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c2b1408

Please sign in to comment.