Angular CLI not enforcing ESLint rules

70 Views Asked by At

I have successfully configured ESLint in my Angular project and my rules are enforced for already existing files. As an example I enforce double quotes.

"rules": {
 "quotes": [2, "double", { "avoidEscape": true, "allowTemplateLiterals": true }]
}

However, when running e.g. ng g c my-component a component is created with single quotes for the imports.

import { Component, OnInit } from '@angular/core'; <- Single quotes

Is it possible to configure Angular with ESLint so that the CLI enforces the rules I have configured in .eslintrc.json?

0

There are 0 best solutions below