@gec.js/react-eslint-config
v1.0.0
Published
Eslint config library for React or Typescript applications
Downloads
2
Maintainers
Readme
@gec.js/react18-eslint-config
Eslint config for TS and React projects.
Based on LBHackney-IT work, @hackney/eslint-config:1.4.1
Installation
npm install @gec.js/react-eslint-config -D
yarn add @gec.js/react-eslint-config -D
Add the library dependencies
yarn add @typescript-eslint/eslint-plugin eslint eslinit-config-airbnb eslint-config-airbnb-typescript eslint-config-prettier eslint-config-react eslint-plugin-import eslint-plugin-jest eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-testing-library prettier -D
Usage
For React based projects configure a .eslintrc
file:
{
"extends": "@gec.js/react-eslint-config"
}
For non React based TS projects:
{
"extends": "@gec.js/react-eslint-config/base"
}