0.1.1 ā€¢ Published 2 years ago

@kzmat/eslint-plugin-commentout v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

eslint-plugin-commentout

npm version test codecov

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

0.1.1

2 years ago

0.1.0

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago