@dvcol/eslint-plugin-presets
v1.3.11
Published
Basic presets for eslint
Downloads
310
Maintainers
Readme
eslint-plugin-presets
Basic presets for eslint
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install @dvcol/eslint-plugin-presets
:
npm install @dvcol/eslint-plugin-presets --save-dev
Usage
Add @dvcol/eslint-plugin-presets
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"@dvcol/presets"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@dvcol/presets/rule-name": 2
}
}
Or extends one of the presets.
{
"extends": [
"@dvcol/presets/base"
]
}