aliens eslint style guide
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-aliens
:
npm install eslint-plugin-aliens --save-dev
Next, install peerDependencies
:
npm info eslint-plugin-aliens peerDependencies
Add aliens
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"aliens"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"aliens/rule-name": 2
}
}
{
"root": true,
"plugins": ["aliens"],
"extends": ["eslint:recommended", "plugin:alines/recommended"],
"env": {
"es6": true
}
}
- Fill in provided rules here