Skip to content

Commit 572b34f

Browse files
committed
Move unused directive check from CLI to config
1 parent b096d17 commit 572b34f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ export default [
3131
},
3232
{
3333
...configCesium.configs.recommended,
34+
linterOptions: {
35+
reportUnusedDisableDirectives: "error",
36+
},
3437
languageOptions: {
3538
sourceType: "module",
3639
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"coverage": "gulp coverage",
122122
"build-docs": "gulp buildDocs",
123123
"build-docs-watch": "gulp buildDocsWatch",
124-
"eslint": "eslint \"./**/*.*js\" \"./**/*.*ts*\" \"./**/*.html\" --cache --quiet --report-unused-disable-directives",
124+
"eslint": "eslint \"./**/*.*js\" \"./**/*.*ts*\" \"./**/*.html\" --cache --quiet",
125125
"make-zip": "gulp makeZip",
126126
"markdownlint": "markdownlint \"**/*.md\"",
127127
"release": "gulp release",

0 commit comments

Comments
 (0)