$ npm install --dev eslint eslint-plugin-pangu
Add pangu
to the plugins section of your .eslintrc
configuration file. You
can omit the eslint-plugin-
prefix:
{
"plugins": ["pangu"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"pangu/prefer-spacing": "error"
}
}
This plugin exports a recommended configuration that enforces good testing practices.
To enable this configuration use the extends
property in your .eslintrc
config file:
{
"extends": ["plugin:pangu/recommended"]
}
See ESLint documentation for more information about extending configuration files.