@redturtle/eslint-config-react
v1.0.2
Published
Shared eslint config for js projects that include react
Downloads
4
Readme
RedTurtle - eslint-config-react
This package provides the RedTurtle default eslint-config, with added react rules.
Installation and usage
Install with yarn or npm:
# Yarn
$ yarn add --dev @redturtle/eslint-config-react
# Npm
$ npm install --save-dev @redturtle/eslint-config-react
If you don't have those already, install peer dependencies:
# Yarn
$ yarn add --dev babel-eslint eslint eslint-config-prettier eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks prettier
# Npm
$ npm install --save-dev babel-eslint eslint eslint-config-prettier eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks prettier
Extend this config in your .eslintrc
file:
{
"extends": "@redturtle/react"
}