Skip to content

Add "defaultSeverity": "warning" to tslint.json when scaffolding app #7185

Closed
@EvAlex

Description

@EvAlex

Bug Report or Feature Request (mark with an x)

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

Versions.

@angular/cli: 1.2.1
node: 7.10.0
os: win32 x64
Windows 10

Repro steps.

  1. Create an app: ng new tempApp
  2. Open any .ts file, e.g. src/main.ts
  3. Make any change that will break tslint rules, e.g. remove semicolon at the end of any line.
  4. Run ng lint
  5. You get ERROR: "path to main.ts"[line, col]: Missing semicolon

The log given by the failure.

ERROR: C:/Users/Alexander/tempApp/src/main.ts[11, 52]: Missing semicolon

Lint errors found in the listed files.

Desired functionality.

Default severity for broken tslint rules should be warning. Those red underlines make me feel that I made error, but in fact I just missed some tiny thing. This sometimes is very disturbing. I think, that syntax error or wrong type, missing member etc. error - are real errors, but tslint errors should be warnings by default.

Mention any other details that might be useful.

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