eslint-plugin-goexpensive
Custom rules
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-goexpensive
:
npm install eslint-plugin-goexpensive --save-dev
Usage
Add goexpensive
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"goexpensive"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"goexpensive/rule-name": 2
}
}
Supported Rules
- Fill in nprovided rules here