1.1.0 • Published 4 years ago

eslint-config-versini v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

eslint-config-versini

ESLint shareable config for my projects.

Installation

$ cd <your-project>
$ yarn add --dev eslint eslint-plugin-jsx-a11y eslint-plugin-react
$ yarn add --dev eslint-config-versini

Usage

Once the eslint-config-versini package is installed, you can use it by specifying versini in the extends section of your ESLint configuration.

{
  "extends": "versini"
}

The ESLint configuration is divided into 8 sub-divisions:

  • best-practices
  • possible-errors
  • variables
  • style
  • node
  • es6
  • react
  • react-a11y

Customization

You can provide your own overrides, via rules configuration options.

{
  "extends": [
    "versini"
  ],
  "rules": {
    // your project overrides
  }
}

You can also turn some rules off, by extending versini/rules/<sub-divisions>/off. For example if you don't use React:

{
  "extends": [
    "versini",
    "versini/rules/react/off",
    "versini/rules/react-a11y/off"
  ],
  "rules": {
    // your project overrides
  }
}