Lucas' Eslint and Prettier personal setup
ESLint and Prettier configurations used by me in personal projects. It has a series of opinionated rules on code styling and best practices I like to use when coding.
What it does
This setup lints your TypeScript code based on best practices. Check the .eslintrc.json file to see what is included. Feel free to override the rules that don't work you.
Installing
- In your project folder, run:
npm install --save-dev @lucas.adriano/eslint-config-lucas-react-ts
npx install-peerdeps --dev @lucas.adriano/eslint-config-lucas-react-ts
- You will see that all the peer dependencies were installed automatically. Now, create (or update) a
.eslintrc.json
file with the following content:
{
"extends": ["@lucasadrianof/eslint-config-lucas-react-ts"]
}
- Create a
.prettierrc.json
file with the following content:
"@lucasadrianof/eslint-config-lucas-react-ts"