Use this esLint config as a basis for you Angular projects.
- Install the npm package
npm i --save-dev @jeroenpol/eslint-config
- Install peer dependencies using NPM 5+ and this command:
npx install-peerdeps --dev @jeroenpol/eslint-config
- Update your
.eslintrc
file to:
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": ["@jeroenpol/eslint-config"]
}
]
}