Unable to convert from TSLint to ESLint with tslint-to-eslint-config 2.7.0
See original GitHub issueHi 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:
- Created 2 years ago
- Comments:33 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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)
This is still throwing error on my Windows 11 terminal having git bash installed with all latest versions