Skip to content

Add lintFix to all generate commands #12894

@Kunepro

Description

@Kunepro

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions