ESLint rules for the Highcharts project
Navigate to this folder and run yo eslint:rule
.
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-highcharts
:
$ npm install eslint-plugin-highcharts --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-highcharts
globally.
Add highcharts
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"highcharts"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"highcharts/rule-name": 2
}
}