How to warn ESLint on TODO/FIXME/XXX
Hmm, simple add to .eslintrc.js
no-warning-comments.
My config:
module.exports = {
extends: ["blitz"],
rules: {
"no-unused-vars": "warn",
"no-console": "warn",
"no-empty": "off",
"no-warning-comments": ["warn", { terms: ["todo", "fixme", "xxx"], location: "anywhere" }],
},
}
yes, its a array…