0.1.1 • Published 7 years ago

eslint-plugin-uuapp v0.1.1

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

eslint-plugin-uuapp

Extends eslint by rules specific for uuApp.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-uuapp:

$ npm install eslint-plugin-uuapp --save-dev

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

Usage

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

{
    "plugins": [
        "uuapp"
    ]
}

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

{
    "rules": {
        "uuapp/rule-name": 2
    }
}

Supported Rules