An ESLint configuration, with additional rules for readability and stylistic code, for React/TypeScript projects.
Run npm install --save-dev @neilbryson/eslint-config
Add this to the extends
field of .eslintrc
:
Option 1:
{
"extends": "@neilbryson"
}
Option 2:
{
"extends": "@neilbryson/eslint-config"
}
This ESLint config uses TypeScript ESLint so make sure that the parser is correctly configured.
{
"parserOptions": {
"project": "./path/to/tsconfig.json"
}
}