1.0.0 • Published 6 years ago
eslint-plugin-iu v1.0.0
eslint-plugin-iu
personal plugin for li.li
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-iu:
$ npm install eslint-plugin-iu --save-devNote: 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
1.0.0
6 years ago