Skip to content

Commit

Permalink
feat!: linterOptions.reportUnusedDisableDirectives error
Browse files Browse the repository at this point in the history
closes #1513
  • Loading branch information
mightyiam committed Oct 13, 2024
1 parent 0cd8132 commit 8ce4578
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 0 additions & 3 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ module.exports = [
require('.'),
{
files: ['**/*.cjs', '**/*.js', '**/*.ts'],
linterOptions: {
reportUnusedDisableDirectives: 'error',
},
languageOptions: {
parserOptions: {
projectService: {
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ const namesOfEslintRulesForWhichWeAreUsingTsEquivalents =
)

const config: TSESLint.FlatConfig.Config = {
linterOptions: {
reportUnusedDisableDirectives: 'error',
},

languageOptions: {
parser,
parserOptions: {
Expand Down
4 changes: 4 additions & 0 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,10 @@ export const expectedExportedRules = {
}

export const expectedExportedValue: TSESLint.FlatConfig.Config = {
linterOptions: {
reportUnusedDisableDirectives: 'error',
},

languageOptions: {
parser,
parserOptions: {
Expand Down

0 comments on commit 8ce4578

Please sign in to comment.