1.0.2 • Published 4 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-paulopreto2.Extend eslint-config-paulopreto in your eslint file
- create
.eslintrcfile 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 . --fixRemove "editor.defaultFormatter": "esbenp.prettier-vscode" line if you had it before.