1.0.2 • Published 2 years ago
eslint-config-paulopreto v1.0.2
ESLint + Typescript + Prettier
An arbitrary custom ESLint configuration for React projects
Ideal for projects using TypeScript, Jest with React Testing Library
Usage
1.Install peer dependencies:
npx install-peerdeps --dev eslint-config-paulopreto
2.Extend eslint-config-paulopreto in your eslint file
- create
.eslintrc
file with the following content:
{
"extends": ["eslint-config-paulopreto"]
}
3.To lint your code run:
npx eslint .
OR if you'd like fixable errors to be fixed automatically, run:
npx eslint . --fix
Remove "editor.defaultFormatter": "esbenp.prettier-vscode"
line if you had it before.