Created
April 15, 2025 23:46
-
-
Save robyoder/13b651b65ab3e46bb68f738678042774 to your computer and use it in GitHub Desktop.
`npx eslint --quiet` should still log the unused directive error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default [ | |
| { | |
| linterOptions: { | |
| reportUnusedDisableDirectives: "error", | |
| }, | |
| rules: { | |
| "no-debugger": ["warn"], | |
| }, | |
| }, | |
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Line 4 should result in an error with either `npx eslint` or `npx eslint --quiet` | |
| // because `reportUnusedDisableDirectives` is set to `"error"` | |
| // But it currently only results in an error when `--quiet` is not used. | |
| // eslint-disable-next-line no-debugger | |
| console.log("not a debugger statement"); | |
| // This line correctly results in a warning only when `npx eslint` is run without `--quiet` | |
| debugger; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment