@betsys-eslint/eslint-config-angular-template
v3.0.0
Published
ESLint configuration used across the company for templates in Angular projects
Downloads
23
Readme
Requirements
We recommend using Node.js v16 as we do not support lower version of Node.js. Angular version 12 and later are supported.
Installing automatically
To install the configuration with all the necessary configuration changes, use the following:
npx @betsys-eslint/install config angular-template
To read more about our installation script visit: @betsys-eslint/install.
:warning: This package currently works only with .eslintrc.json
file. We plan to support other configuration files (.js
and .yml
) in the future.
Installing manually
To install the configuration manually, use the following:
npm install --save-dev @betsys-eslint/eslint-config-angular-template
after installation, add the configuration to you ESLint config:
{
"overrides": [
{
files: ["*.html"],
// Locate configuration for your HTML files
"extends": [
// ...
"@betsys-eslint/angular-template"
]
}
]
}
About the configuration
If you'd like to use our full set of rules for Angular, check out the Angular configuration. Also, this configuration uses our Angular Template Spacing plugin to make sure your spacing is correct.