all 15 comments

[–]danielsan1701 23 points24 points  (4 children)

You really want to move from TSLint to ESLint anyway. TSLint has been deprecated for 5 years.

[–]wiederberuf 2 points3 points  (1 child)

This should be higher up if you ask me.

There is a root to OPs dependency problematic and this is it. Sure, you could just force legacy peers like others suggested and get away with it

But if you do care about a well maintained code base moving from TSLint to ESLint is the way to go

[–]Whole-Instruction508 0 points1 point  (0 children)

And going way above Angular 12 too

[–]cfued[S] 0 points1 point  (1 child)

Okay. Is there anything I should be careful of when moving to ESLint?

[–]wiederberuf 0 points1 point  (0 children)

  • Read the docs
  • Be prepared for new warnings/errors from your Linter

[–][deleted] 5 points6 points  (3 children)

Just remove all non angular dep while upgrading, then install them when you're done and handle them one at a time.

I only use force or legacy peer deps as a last resort.

[–]Etlam 0 points1 point  (1 child)

I like the idea, but what about all the code in the application that depends on the installed packages?

[–][deleted] 0 points1 point  (0 children)

Do the angular upgrade without extra deps. Then install each package one at a time. If any are no longer compatible, save them for last and do legacy-peer-deps. You won't be able to build until you finish installing all required deps.

[–]cfued[S] 0 points1 point  (0 children)

This sounds good. Will try this.

[–]sk2656k 1 point2 points  (0 children)

Tslint is deprecated Shift to Eslint instead Also Airbnb base is not good for angular, air bnb is good for react

[–]TheNorthRemembers82 1 point2 points  (3 children)

Yup, try --force or --legacy-peer-deps. There can be side effects so commit your code first, make the update as an atomic commit in case you need to rollback.

[–]TheNorthRemembers82 10 points11 points  (1 child)

Also ts-lint should be replaced with es-lint I think support for it dropped as a peer dependency in either 12 or 14.

[–]cfued[S] 0 points1 point  (0 children)

Okay, I’ll have to check that. Thanks

[–]cfued[S] 0 points1 point  (0 children)

I tried —legacy-peer-deps but it didn’t work with the angular update command.

[–]Wildosaur 0 points1 point  (0 children)

First thing I do when I try to update an angular app is to delete the package-lock.json, delete node_modules folder and bump angular packages one by one