question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When migrating, all rules from TSLint are ignored and didn't transfer to ESLint

See original GitHub issue

Trying to migrate from TSLint to ESLint, but when running ng g @angular-eslint/schematics:convert-tslint-to-eslint <project-name>

got an error: Command failed: npm i -D tslint-to-eslint-config@2.4.0

Only works if this package is installed manually.

package version
@angular-eslint/eslint-plugin-template 13.2.1
@angular-eslint/template-parser 13.2.1
@typescript-eslint/parser 5.17.0
ESLint 8.13.0
node v16.14.0
Angular CLI: 13.3.3
Node: 16.14.0
Package Manager: npm 8.3.1
OS: darwin x64

Angular: 13.3.4
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1303.3
@angular-devkit/build-angular   13.3.3
@angular-devkit/core            13.3.3
@angular-devkit/schematics      13.3.3
@angular/cli                    13.3.3
@angular/elements               13.3.3
@schematics/angular             13.3.3
ng-packagr                      13.3.1
rxjs                            6.6.7
typescript                      4.6.3

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JamesHenrycommented, Apr 21, 2022

@EPolishchuk they aren’t ignored, they are included in your ESLint config already via the “extends” on our Angular CLI compat preset

0reactions
JamesHenrycommented, Apr 21, 2022

@EPolishchuk cool glad you were able to resolve it 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrating from TSLint to ESLint - Ninja Squad
A few tips on how to handle the migration from the deprecated TSLint to ESLint.
Read more >
Unable to convert from TSLint to ESLint with tslint-to ... - GitHub
Hi guys, in this issue I described that I am not able to run the command to migrate from tslint to eslint.
Read more >
Migrate from TSLint to ESLint - Visual Studio Code
A guide to migrating extension projects from the TSLint linter to ESLint. ... makes ESLint understand TypeScript, and adds some TypeScript-specific rules.
Read more >
Migrating from tslint to eslint and from request to got (part 1)
Finally I browsed my code with the new rules, either fixing the new violations or adding rules for them. In the end, I...
Read more >
Migrating from TSLint to ESLint - Medium
One of the rules in tslint:recommended is to always prefer strict equals. TSLint does't automatically fix this for us, so it throws an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found