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.

Unable to convert from TSLint to ESLint with tslint-to-eslint-config 2.7.0

See original GitHub issue

Hi guys,

in this issue I described that I am not able to run the command to migrate from tslint to eslint.

When I type ng g @angular-eslint/schematics:convert-tslint-to-eslint PROJECTNAME and check the defaults I get this error:

There was a critical error when trying to inspect your tslint.json:

env: node: No such file or directory

I’m running this command on a mac, in a multiple projects workspace. My project is in the root folder, the tslint.json file too. Is there something I am missing?

If I type npx tslint --print-config {PATH_TO_YOUR_TSLINT_JSON_HERE} as suggested I get a new tslint.json config, but that one doesn’t work too.

Many thanks in advance, Matthias

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:33 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
KyDenZcommented, Jul 7, 2021

I have the same problem with a project containing several applications

Update: I have the impression that the problem is with the package tslint-to-eslint-config with the last version (not working with 2.7.0, working with 2.6.0)

0reactions
rajjaiswalsaumyacommented, Aug 27, 2022

This is still throwing error on my Windows 11 terminal having git bash installed with all latest versions image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrate from TSLint to ESLint - Visual Studio Code
A guide to migrating extension projects from the TSLint linter to ESLint. ... to make the actual migration simpler, run the tslint-to-eslint-config utility....
Read more >
tslint-to-eslint-config - npm
Converts your TSLint configuration to the closest reasonable ESLint equivalent.. Latest version: 2.13.3, last published: 4 months ago.
Read more >
failed to load parser '@angular-eslint/template-parser' - You.com
We cannot set a single parser at the top level of the config and expect things to work, we need one parser for...
Read more >
Migrating from TSLint to ESLint - Ninja Squad
ng lint now runs ESLint! You may have a bunch of files to fix. If you want to keep this exact configuration, try...
Read more >
How to run @angular-eslint/schematics:convert-tslint-to-eslint
6", "eslint-plugin-prefer-arrow": "1.2.2",. Also, ran npm install to ensure these are all installed. Now I'm instructed to run:
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