eslint-plugin-log-linter

0.0.6 • Public • Published

eslint-plugin-log-linter

ESLint JS plugin

Overview

The eslint-plugin-log-linter is an eslint js plugin for the logs linting.

It is using the ESLint library to help validate logging standards.

Usage without shareable config

  1. Install eslint as a dev-dependency:

    npm install --save-dev eslint
  2. Install eslint-plugin-log-linter:

    If ESLint is installed globally, then make sure eslint-plugin-log-linter is also installed globally. A globally-installed ESLint cannot find a locally-installed plugin.

     npm install eslint-plugin-log-linter -global

    If ESLint is installed locally, then make sure eslint-plugin-log-linter is also installed locally.

     npm install eslint-plugin-log-linter -save-dev
  3. Enable the plugin by adding it to your .eslintrc:

    plugins:
      - log-linter
  4. You can also configure these rules in your .eslintrc. All rules defined in this plugin have to be prefixed by 'log-linter/'

    plugins:
      - log-linter
    rules:
      - log-linter/error-code: 'myCode'

Rules

  • error-code - provide error logs with argument holding an error code.

Readme

Keywords

Package Sidebar

Install

npm i eslint-plugin-log-linter

Weekly Downloads

0

Version

0.0.6

License

Apache-2.0

Last publish

Collaborators

  • michael.yakubov