Migrate eg2 from TSLint to ESLint
Bug #1959048 reported by
Jane Sandberg
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
After the upgrade to Angular 12 (see bug 1948035), running `ng lint` prints the following message:
TSLint's support is discontinued and we're deprecating its support in Angular CLI.
To opt-in using the community driven ESLint builder, see: https:/
The linting is awesome and keeps us consistent -- we should follow the recommended steps to make sure we can continue using a supported linter.
Changed in evergreen: | |
assignee: | nobody → Jane Sandberg (sandbergja) |
milestone: | none → 3.10-beta |
Changed in evergreen: | |
assignee: | nobody → Galen Charlton (gmc) |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I ran through the generator steps here, as well as `ng lint --fix` to apply some fixes: user/sandbergja /lp1959048_ eslint
To try it out on an existing installation, you'll just want to run npm install to install the dependencies.
It is a bit pickier than the old linter, for better or worse. It does look for objectionable bits in the HTML templates as well as the ts files, which seems like a nice improvement. However, there are 121 errors that the new linter picked up that it couldn't fix automatically. :-(