eslint-plugin-console-to-log
TypeScript icon, indicating that this package has built-in type declarations

0.0.56 • Public • Published

eslint-plugin-console-to-log

Replaces console statements with logger

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-console-to-log:

npm install eslint-plugin-console-to-log --save-dev

Usage

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.

Package Sidebar

Install

npm i eslint-plugin-console-to-log

Weekly Downloads

0

Version

0.0.56

License

ISC

Unpacked Size

5.02 kB

Total Files

10

Last publish

Collaborators

  • h0bb5