Skip to content

Commit

Permalink
add report-unused-disable-directives option
Browse files Browse the repository at this point in the history
  • Loading branch information
ryota-murakami committed Aug 21, 2023
1 parent ea9c98e commit e024181
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type {import("@types/eslint").Linter.Config} */
/** @type {import('@types/eslint').Linter.Config} */
module.exports = {
env: {
browser: true,
Expand All @@ -12,11 +12,13 @@ module.exports = {
ecmaFeatures: {
jsx: true,
},
// @TODO IDK what's the best setting, I have concern that sourceType: 'module' cause error.
ecmaVersion: 'latest',
project: ['tsconfig.json'],
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'import', 'sort-keys-fix', 'prettier'],
reportUnusedDisableDirectives: true,
root: true,
rules: {
'@typescript-eslint/await-thenable': 'error',
Expand Down

0 comments on commit e024181

Please sign in to comment.