Similar to this question
I am running the following command to linting my angular2 typeScript code.
ng lint
It is proving all the lint
Your angular-cli.json file would be like this-
"lint": [
{
"project": "src/tsconfig.app.json",
"exclude": "**/node_modules/**"
},
{
"project": "src/tsconfig.spec.json",
"exclude": "**/node_modules/**"
},
{
"project": "e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**"
}
]
You need to remove the lint path for "src/tsconfig.spec.json". So either remove the second object or comment it. Your updated lint array should be like this-
"lint": [
{
"project": "src/tsconfig.app.json",
"exclude": "**/node_modules/**"
},
{
"project": "e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**"
}
]