@dvcol/eslint-plugin-presets

1.3.10 • Public • Published

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"
  ]
}

Package Sidebar

Install

npm i @dvcol/eslint-plugin-presets

Weekly Downloads

72

Version

1.3.10

License

MIT

Unpacked Size

52.8 kB

Total Files

21

Last publish

Collaborators

  • dvcol