eslint-config-airbnb-angular
v1.0.0
Published
Airbnb's ESLint config with Angular and TypeScript support
Downloads
2,218
Maintainers
Readme
eslint-config-airbnb-angular
Airbnb's ESLint config with Angular and TypeScript support
Use this when you're trying to use eslint-config-airbnb-base and typescript-eslint in your Angular project.
Note: this config works for both JS and TS files.
Installation
Install dependencies. ESLint plugins must also be installed.
npm install --save-dev eslint-config-airbnb-angular \
eslint-plugin-import \
@typescript-eslint/eslint-plugin
Within your ESLint config file:
module.exports = {
extends: ['airbnb-angular'],
};
Alter your eslint command to include ts files:
eslint --ext .js,.ts .
Credits
Authored and maintained by Eike Foken (eikefoken.com)
License
Open source licensed as MIT.