1.0.0 • Published 5 years ago

eslint-plugin-iu v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

eslint-plugin-iu

personal plugin for li.li

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-iu:

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

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

Usage

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

{
    "plugins": [
        "iu"
    ]
}

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

{
    "rules": {
        "iu/async-arrow-function": 2
    }
}

Supported Rules

  • iu/async-arrow-function

在iOS 10.3及以下的浏览器中不支持在class中使用async arrow function。详情可见webkit bug