Skip to content

Unable to exclude node_modules for lint #6626

Closed
@kvanlaan

Description

@kvanlaan

Bug Report or Feature Request (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

Repro steps.

I am trying to exclude my node_modules from linting.
I tried adding the excludes in the lint property in the .angular-cli.json file.
However it did not work.

"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//*"
}

The log given by the failure.

Desired functionality.

To exclude the node_modules from linting.

Mention any other details that might be useful.

I tried a few different formats for the exclude, none of them worked:

"exclude": "/node_modules/"
"exclude": "/node_modules/"
"exclude": "
/node_modules/"

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions