0.1.0 • Published 1 year ago

@lucasadrianof/eslint-config-lucas-react-ts v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

  1. 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
  1. 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"]
}
  1. Create a .prettierrc.json file with the following content:
"@lucasadrianof/eslint-config-lucas-react-ts"

Inspirations 💡