1.0.2 • Published 4 years ago

eslint-plugin-korolint v1.0.2

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

eslint-plugin-korolint

本项目用于学习eslint rule开发。

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-settimeout-no-number:

$ npm install eslint-plugin-settimeout-no-number --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-settimeout-no-number globally.

Usage

Add settimeout-no-number to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "settimeout-no-number"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "settimeout-no-number/rule-name": 2
    }
}

Supported Rules

  • Fill in provided rules here