eslint-config-versini

1.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-versini

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

77.9 kB

Total Files

21

Last publish

Collaborators

  • aversini