0.22.0 • Published 5 years ago

@chantelle/eslint-config v0.22.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

@chantelle/eslint-config

Chantelle Lingerie's ESLint config

Installation

yarn add --dev @chantelle/eslint-config

Make sure to install the peerDependencies as well:

yarn add --dev eslint eslint-config-airbnb-base eslint-plugin-import

Usage

On .eslintrc, add the following:

{
  "extends": ["@chantelle"]
}

React

If your project uses React, you should add the react ruleset to your .eslintrc:

{
  "extends": [
    "@chantelle",
    "@chantelle/eslint-config/react"
  ]
}

And also install the following packages:

yarn add --dev eslint-config-airbnb eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks

Typescript

If your project uses Typescript, you should add the typescript ruleset to your .eslintrc:

{
  "extends": [
    "@chantelle",
    "@chantelle/eslint-config/typescript"
  ]
}

And also install the following packages:

yarn add --dev typescript @typescript-eslint/eslint-plugin @typescript-eslint/parser

For more info on using extended eslint rules, check the documentation

VSCode

  1. Install ESLint extension;
  2. Add the following configuration:
"eslint.nodePath": "/usr/local/bin/eslint",
"eslint.validate": [
  "javascript",
  "javascriptreact",
  {
    "language": "typescript",
    "autoFix": true
  },
  {
    "language": "typescriptreact",
    "autoFix": true
  }
],
0.22.0

5 years ago

0.21.0

5 years ago

0.20.0

5 years ago

0.19.0

5 years ago

0.18.1

5 years ago

0.18.0

5 years ago

0.17.0

5 years ago

0.16.0

5 years ago

0.15.0

5 years ago

0.14.0

5 years ago

0.13.0

5 years ago

0.12.1

5 years ago

0.12.0

5 years ago

0.11.0

5 years ago

0.10.0

5 years ago

0.9.2

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.0

6 years ago