angular-eslint: Unable to convert from TSLint to ESLint with tslint-to-eslint-config 2.7.0
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
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 34 (11 by maintainers)
My quick fix was to manually install
tslint-to-eslint-config
in version 2.6.0 as a dev dependency, migrate and then uninstall it again: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)