$ npm install eslint-plugin-kcd-eggheadJust a demo of an eslint plugin. Don't use this.
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-kcd-egghead:
$ npm install eslint-plugin-kcd-egghead --save-dev
Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-kcd-egghead globally.
Add kcd-egghead to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"kcd-egghead"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"kcd-egghead/rule-name": 2
}
}
console