@galadrim/eslint-config-galadrim-react
v1.0.10
Published
Eslint config for react project
Downloads
162
Readme
eslint-config-galadrim
Eslint config for Galadrim projects.
Setup
1. Install
npx install-peerdeps --dev @galadrim/eslint-config-galadrim-react
2. Create eslintrc.js file
npm init @eslint/config
or
$ yarn create @eslint/config
choose the options
3. Edit .eslintrc.js
extends: [
"@galadrim/eslint-config-galadrim-react",
"@galadrim/eslint-config-galadrim-react/react-native",
"@galadrim/eslint-config-galadrim-react/next",
"@galadrim/eslint-config-galadrim-react/typescript",
"@galadrim/eslint-config-galadrim-react/prettier",
],
Notes :
@galadrim/eslint-config-galadrim-react/prettier
should always be at the end@galadrim/eslint-config-galadrim-react/typescript
and@galadrim/eslint-config-galadrim-react/next
are optionnals- if
@galadrim/eslint-config-galadrim-react/typescript
addparserOptions.project: <path_to_tsconfig>
in your eslint file.