eslint-plugin-huawei-hex
eslint-plugin-huawei-hex
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-huawei-hex
:
npm install eslint-plugin-huawei-hex --save-dev
Usage
Add huawei-hex
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"huawei-hex"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"huawei-hex/rule-name": 2
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.