1.0.1 • Published 2 years ago
eslint-plugin-eslint-remove-unwanted-comments
Licence
MIT
Version
1.0.1
Deps
0
Size
3 kB
Vulns
0
Weekly
0
/##### ESLINT Custom Rule for removing unwanted comments and autofix it #######/
- provides a whitelist so it doesnt remove everything
{ "plugins": ["my-eslint-plugin"], "rules": { "my-eslint-plugin/remove-unwanted-comments": ["error", { "whitelist": ["TODO:", "FIXME:"] }] } }
- UPDATE: The plugin is semi efficient in removing comments that are lines of code that start with //
- Need to fine tune the regex match