eslint-plugin-console-to-log
v0.0.56
Published
Rewrites console statements if using custom logger
Downloads
5
Maintainers
Readme
eslint-plugin-console-to-log
Replaces console statements with logger
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-console-to-log:
npm install eslint-plugin-console-to-log --save-devUsage
Add no-console-log to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["no-console-log"]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"no-console-log/rule-name": 2
}
}Rules
TODO: Run eslint-doc-generator to generate the rules list.
