eslint-plugin-pabigot
A holder for rules and other ESLint extensions that suit my needs.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-pabigot
:
$ npm install eslint-plugin-pabigot --save-dev
Note: If you installed ESLint globally (using the -g
flag) then
you must also install eslint-plugin-pabigot
globally.
Usage
Add pabigot
to the plugins section of your .eslintrc
configuration
file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"pabigot"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"pabigot/affixed-ids": ["error", {
"base": "camelcase",
"allowedSuffixes": ["_ms"]
}]
}
}
Supported Rules
- affixed-ids - check identifier style conformance