eslint-config-standard-ng
v1.0.2
Published
ESLint configuration based on recommended best practices for an Angular project
Downloads
3
Readme
ESLint (and Prettier) configuration
ESLint configuration based on recommended best practices for an Angular project
What it does
This setup lints your JavaScript code based on practices. Check the .eslintrc.js file to see what is included. Feel free to override the rules that make sense for you.
Installing
- In your project folder, run:
npm i -D eslint-config-standard-ng # or yarn install --dev eslint-config-standard-ng
npx install-peerdeps --dev eslint-config-standard-ng
- You will see several dependencies were installed. Now, create (or update) a
.eslintrc
file with the following content:
{
'extends': [
'standard-ng'
]
}
- Copy the .prettierrc.js file from this repository into your project folder