no-warning-comments
eslint
No autofix
eslint.config.js
export default [
{
rules: {
"no-warning-comments": "error",
},
},
];/*
FIXME
*/
function callback(err, results) {
if (err) {
console.error(err);
return;
}
// TODO
}// TODO: this
// todo: this too
// Even this: TODO
/*
* The same goes for this TODO comment
* Or a fixme
* as well as any other term
*///***** todo decorative asterisks are ignored *****//
/**
* TODO new lines and asterisks are also ignored in block comments.
*/function callback(err, results) {
if (err) {
console.error(err);
return;
}
// NOT READY FOR PRIME TIME
// but too bad, it is not a predefined warning term
}// This is to do
// even not any other term
// any other terminal
/*
* The same goes for block comments
* with any other interesting term
* or fix me this
*///!TODO preceded by non-decoration character
/**
*!TODO preceded by non-decoration character in a block comment
*/Examples from the ESLint documentation.
no-warning-comments
eslint
export default [
{
rules: {
"no-warning-comments": "error",
},
},
];no-warning-comments
eslint plugin · pedantic
{
"rules": {
"no-warning-comments": "error"
}
}Biome does not have this rule.
Disallow specified modules when loaded by import
Require function names to match the name of the variable or property to which they are assigned
Disallow null comparisons without type-checking operators
Enforce using named capture group in regular expression
Disallow declarations in the global scope