1.0.2 • Published 4 years ago

@ncko/eslint-config v1.0.2

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

@ncko/eslint-config

Usage

Install @ncko/eslint-config along with eslint:

yarn add -D eslint @ncko/eslint-config

In a .eslintrc file at the root of your project:

{
  "extends": ["@ncko/eslint-config"]
}

There are also configs for typescript and react. Each have peer dependencies that must also be installed.

Typescript

Install the typescript config's peer dependencies:

yarn add -D typescript @typescript-eslint/eslint-plugin

In your .eslintrc file:

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

React

Install the react config's peer dependencies:

yarn add -D eslint-plugin-jsx-a11y eslint-plugin-react

In your .eslintrc file:

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