Skip to content

Instantly share code, notes, and snippets.

@robyoder
Created April 15, 2025 23:46
Show Gist options
  • Select an option

  • Save robyoder/13b651b65ab3e46bb68f738678042774 to your computer and use it in GitHub Desktop.

Select an option

Save robyoder/13b651b65ab3e46bb68f738678042774 to your computer and use it in GitHub Desktop.
`npx eslint --quiet` should still log the unused directive error
export default [
{
linterOptions: {
reportUnusedDisableDirectives: "error",
},
rules: {
"no-debugger": ["warn"],
},
},
];
// 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