loadsh es 按需导入
npm install eslint-plugin-loadsh-importloadsh es 按需导入
You'll first need to install ESLint:
``sh`
npm i eslint --save-dev
Next, install eslint-plugin-loadsh-import:
`sh`
npm install eslint-plugin-loadsh-import --save-dev
Add loadsh-import to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
`json`
{
"plugins": [
"loadsh-import"
]
}
Then configure the rules you want to use under the rules section.
`json``
{
"rules": {
"loadsh-import/rule-name": 2
}
}
TODO: Run eslint-doc-generator to generate the rules list.