Skip to content

Lint errors shown as syntax errors in editors #10727

Closed
@cyrilletuzi

Description

@cyrilletuzi

Versions

cli v6.0.0

Repro steps

  • ng new helloworld
  • In an editor like Visual Studio Code, do something not respecting lint rules (like an expression not terminated by a semicolon)

Observed behavior

An error, similar to a syntax error, is displayed (in red).

Desired behavior

Should display a warning (in green).

Mention any other details that might be useful (optional)

This issue is here for a long time, and has already been discussed in angular/devkit#269.

Again, I'm animating a lot of Angular courses, and it's really disturbing for new comers. And to back up my opinion, Vue.js is configuring lint errors as warnings, as I advocated.

Solution firstly proposed in PR angular/devkit#463, but ignored for a long time, redone in angular/devkit#867 for CLI v6. Now that 6.0 is released, would be nice to be tracked for 6.1. It's keeping the current behavior for ng lint, and change to warnings only in the editor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions