Skip to content

Add automatic style fixing for ng new and all generators. #6272

@filipesilva

Description

@filipesilva

With palantir/tslint#2723 merged, TS Lint will allow both quotemark and indentation auto-fix. This, together with #6213, allows generators to automatically fix such style issues in generated files.

A flag to always auto-fix should be added to .angular-cli.json to always fix on generators:

  "defaults": {
    "lintFix": true,
    "styleExt": "css",
    "component": {}
  }

To allow this functionality for new projects, the global .angular-cli.json needs to be include some style information that will be used to override tstlint and .editorconfig settings, and linting must run post install.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussioneffort1: easy (hours)featureIssue that requests a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions