@deuterium/eslint-config

1.3.3 • Public • Published

eslint-config

eslint is useful for linting - spell checking, in a sense - your code.

Installation

Of course, eslint must be installed to use this config.

Main

yarn add --dev eslint @deuterium/eslint-config

Supports

This config supports a variety of eslint configurations.

If using babel

  • babel-eslint - Allows for linking of babel code and eslint
yarn add --dev babel-eslint

Extra babel plugins are configured for use with babel-eslint:

yarn add --dev @babel/plugin-transform-runtime @babel/plugin-proposal-pipeline-operator @babel/plugin-proposal-do-expressions @babel/plugin-proposal-nullish-coalescing-operator @babel/plugin-proposal-optional-chaining

Airbnb configurations (use only one)

Choose one of

yarn add --dev eslint-config-airbnb eslint@^#.#.# eslint-plugin-jsx-a11y@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-react@^#.#.#

or

yarn add --dev eslint-config-airbnb-base eslint@^#.#.# eslint-plugin-import@^#.#.#

Using Flow

yarn add --dev eslint-plugin-flowtype flow-bin babel-eslint

Using Prettier

yarn add --dev eslint-plugin-prettier prettier eslint-config-prettier

Usage

In package.json

"eslintConfig": {
    "extends": [
      "@deuterium"
    ]
  }

or in a .eslintrc file:

{
  "extends": "@deuterium"
}

Readme

Keywords

none

Package Sidebar

Install

npm i @deuterium/eslint-config

Weekly Downloads

10

Version

1.3.3

License

MIT

Unpacked Size

9.84 kB

Total Files

6

Last publish

Collaborators

  • deuterium