Skip to content

Different tslint typedef behavior between migration and generation #18465

@Bored-Bohr

Description

@Bored-Bohr

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • xi18n
  • run
  • config
  • help
  • version
  • doc

Description

When migrating from Angular 9 using ng update @angular/core @angular/cli the typedef rule is not added to tslint.json.
When generating a new project in Angular 10, the typedef rule is added.

It seems that typedef should be added with Angular 10 #17821

🔬 Minimal Reproduction

Migration

  1. Install Angular CLI 9: npm i -g @angular/cli@v9-lts
  2. Generate Angular 9: ng new <project_name>
  3. cd <project_name>
  4. Update to Angular 10: ng update @angular/core @angular/cli

Generation

  1. Install Angular CLI 9: npm i -g @angular/cli@latest
  2. Generate Angular 10: ng new <project_name>

Check difference in tslint.json

🌍 Your Environment

Angular CLI: 9.1.12
Node: 12.18.3
OS: win32 x64

Angular CLI: 10.0.5
Node: 12.18.3
OS: win32 x64

Anything else relevant?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions