@6river/eslint-plugin-6river 中文文档教程
eslint-plugin-6river
一组 6river eslint 插件
Installation
你首先需要安装 ESLint:
$ npm i eslint --save-dev
接下来,安装 eslint-plugin-6river
:
$ npm install eslint-plugin-6river --save-dev
注意:如果您全局安装了 ESLint(使用 -g
标志),那么您还必须全局安装 eslint-plugin-6river
。
Usage
将 6river
添加到 .eslintrc
配置文件的插件部分。 您可以省略 eslint-plugin-
前缀:
{
"plugins": [
"6river"
]
}
然后在规则部分配置您要使用的规则。
{
"rules": {
"6river/rule-name": 2
}
}
Supported Rules
- new-cap
eslint-plugin-6river
set of 6river eslint plugins
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-6river
:
$ npm install eslint-plugin-6river --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-6river
globally.
Usage
Add 6river
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"6river"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"6river/rule-name": 2
}
}
Supported Rules
- new-cap