@kzmat/eslint-plugin-commentout
v0.1.1
Published
Eslint plugin, disallow commentout except annotation comment
Downloads
2
Maintainers
Readme
eslint-plugin-commentout
Eslint plugin that check commentout except annotation comment. This plugin supports following annotation.
- TODO:
- FIXME:
- HACK:
- NOTE:
- XXX:
- WARNING:
- @.*
Install
yarn add -D @kzmat/eslint-plugin-commentout
Usage
.eslintrc.js
module.exports = {
"plugins": [
...,
"@kzmat/commentout"
],
"rules": [
...,
"@kzmat/commentout/commentout": "error"
]
...,
}
Example
🙆♂️ Good
const foo = 'bar'
// TODO: todo something
// FIXME: fix something
// @ts-ignore
const foo: any = 'bar'
🙅♂️ Bad
// const foo = 'bar'
License
MIT