ESLint-config for typed JavaScript projects.
npm install @paulhfischer/eslint-config-typescriptESLint-config for typed JavaScript projects. It is based on
- eslint-config-airbnb-base,
- eslint-config-airbnb-typescript,
- eslint-config-prettier and
- prettier-config
and uses
- eslint-plugin-html and
- eslint-plugin-jinja2-processor
to enable linting for more file types.
1. Install via npm:
```
npm install --save-dev @paulhfischer/eslint-config-typescript --engine-strict
_Note: The installation requires npm version 7 or higher (otherwise peer dependencies aren't installed automatically). Have a look at the .pre-commit-hooks.yaml-file for a list of all peer-dependencies._
2. Add the plugin to your eslint-config:
`json`
{
"extends": ["@paulhfischer/eslint-config-typescript"]
}
3. Add the prettier configuration to your prettier-config:
`json``
"@paulhfischer/prettier-config"