1.1.0 • Published 4 years ago
eslint-plugin-baili v1.1.0
eslint-plugin-max-length
test
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-max-length
:
$ npm install eslint-plugin-max-length --save-dev
Usage
Add max-length
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["max-length"]
}
rules 文件夹存放的是各个规则文件 tests 文件夹存放单元测试文件 package.json 是你的 ESLint 插件 npm 包的说明文件,其中的 name 属性就是你的 ESLint 插件的名称,命名规则:带前缀 eslint-plugin-