0.1.8 • Published 4 years ago

eslint-config-centralstandard v0.1.8

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

eslint-config-centralstandard

This package includes the shareable ESLint configuration used by Central Standard across its codebases.

Installation

Add the configuration settings to your project:

yarn add --dev eslint-config-centralstandard

Add the peer dependencies:

yarn add --dev @typescript-eslint/eslint-plugin @typescript-eslint/parser babel-eslint@ eslint eslint-config-prettier eslint-plugin-import eslint-plugin-prettier

And add the configuration to your .eslintrc.json file:

{
  "extends": "centralstandard"
}

Node

If you're using the Node configuration, make sure you add its peer dependencies:

yarn add --dev eslint-plugin-node

Then change the configuration to your .eslintrc.json file to:

{
  "extends": "centralstandard/node"
}

React

If you're using the React configuration, make sure you add its peer dependencies:

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

Then change the configuration to your .eslintrc.json file to:

{
  "extends": "centralstandard/react"
}

React Native

If you're using the React Native configuration, make sure you add its peer dependencies:

yarn add --dev eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-react-native

Then change the configuration to your .eslintrc.json file to:

{
  "extends": "centralstandard/react-native"
}