I am working on an Angular 4 application and have manually created two .spec files for a specific class. When I use the nglint
command, it successfully lints these two files. However, the spec files that were automatically generated when I created a component using angular-cli are not being linted (which is my desired behavior).
Despite adding the following configuration to my .angular-cli.json file, the automatic linting of files still occurs:
"lint": [
{
"project": "src/tsconfig.app.json",
"exclude": "**/**/*.spec.ts"
},
{
"project": "src/tsconfig.spec.json",
"exclude": "**/**/*.spec.ts"
},
{
"project": "e2e/tsconfig.e2e.json",
"exclude": "**/**/*.spec.ts"
}
],
It's worth noting that my spec files are located within the directory /src/app/folder/.