Angular: how to ignore src folder while checking in package.json

Hi,
I’m using Sonarqube for my Angular 6 Project and want to deal with the following code smell:
“Module ‘src’ is not listed as dependency in package.json”
There are many imports like “import … from ‘src/app/…’;”
I added the following rule to my tslint.json
“no-implicit-dependencies”: [true, [“src”, “app”]]
but no success.
How can I solve this problem?

1 Like