Description
Using Angular CLI v6.0.5. New Project
In pre-v6 projects, in ".angular-cli.json"
under "defaults"
section we had "lintFix": true
setting, which ensured that after generating new component/service/whatever the linting fixes where performed automatically. Now in new "angular.json"
(which replaces ".angular-cli.json"
) I can't find similar option. Which is a HUGE problem!
Suppose I have changed linter defaults to prefer "double quotes" for string (whoever said 'single quotes' should be default for TypeScript needs to be fired IMHO). Now every time I generate new component with ng g component MyNewComponent
, it is created with all 'single quote' strings inside, instead of "double quotes"! And I have to manually fix them every time which is a nightmare! lintFix
setting solved that in previous CLI versions but now, what is an alternative?!