eslint-plugin-avoid-comments
Version:
ESLint customized rule to prevent comments
18 lines (15 loc) • 365 B
JavaScript
;
const avoidCommentsPlugin = require("./avoid-comments-plugin");
module.exports = [
{
files: ["**/*.js"],
languageOptions: {
sourceType: "commonjs",
ecmaVersion: "latest",
},
plugins: { "avoid-comments": avoidCommentsPlugin },
rules: {
"avoid-comments/avoid-comments": "error",
},
},
];