ng-add fails if it can't find tslint
See original GitHub issueDescribe the problem
When performaing ng add @fortawesome/angular-fontawesome@0.6.0
it asked for what font icons I would like:
Installing packages for tooling via npm.
Installed packages for tooling via npm.
? Choose Font Awesome icon packages you would like to use: Free Solid Icons, Free Regular Icons, Free Brands Icons
UPDATE package.json (3013 bytes)
UPDATE src/app/app.module.ts (11139 bytes)
But afterwards failed with: Cannot find module 'tslint'
What did you expect?
It to succeed without any errors. I do not use tslint.
Reproducible test case
Unable to produce a test case on stackblitz, requires command line.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Cannot find tslint.json when running ng g @angular-eslint ...
Im running the command from the myProject folder and getting that error. I assume its because my tslint.json is in the src folder...
Read more >Can't run ng lint on my angular-cli project - Stack Overflow
When I run ng lint , I get the yellow chalk error No lint config(s) found. If this is not intended, run "ng...
Read more >enable tslint in vscode - YouTube
enable tslint in vscodePreRequiste:Have typescript installed. npm install typescriptInstall tslint ... Your browser can't play this video.
Read more >TSLint - Visual Studio Marketplace
If you are not seeing TSLint working in your project—such as TSLint errors not showing up—you can follow these steps to investigate what...
Read more >TSLint command-line interface - Palantir Open Source
By default, TSLint looks for a configuration file named tslint.json in the directory of the file being linted and, if not found, searches...
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 Free
Top 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
Sounds reasonable to me. Feel like submitting a PR?
The fix is to wrap this line into “tslint is installed” check.
I don’t think there is an easy way to test it, so it is fine without test.