angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Add lintFix to all generate commands

Open Kunepro opened this issue 8 years ago • 1 comments

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ X ] feature request

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ X ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

NPM: 6.4.1 Angular CLI: 7.0.3 Node: 10.12.0 OS: darwin x64 Angular: 7.0.1 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, platform-server, router

Package Version

@angular-devkit/architect 0.8.3 @angular-devkit/build-angular 0.8.3 @angular-devkit/build-optimizer 0.8.3 @angular-devkit/build-webpack 0.8.3 @angular-devkit/core 0.8.3 @angular-devkit/schematics 7.0.3 @angular/cdk 7.0.2 @angular/cli 7.0.3 @angular/material 7.0.2 @ngtools/webpack 6.2.3 @schematics/angular 7.0.3 @schematics/update 0.10.3 rxjs 6.3.3 typescript 3.1.3 webpack 4.20.2

Repro steps

ng generate module some-module --lintFix=true

Expected generated module to be tslint fixed like happens with components, however no changes.

The log given by the failure

No changes in the module, components are fixed and spaces replaced by tabs, modules are not. I only tested with modules, but I expect that all the other ng generate commands have the same issue.

Desired functionality

ng generate to support lintFix

Mention any other details that might be useful

Kunepro avatar Nov 08 '18 08:11 Kunepro

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.