-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to exclude node_modules for lint #6626
Comments
@kvanlaan how do you verify it is not being excluded? Is there a specific package that's giving you linting errors? |
Same issue here. Exclude doesn't seems to work. $ ng lint
Failed to load [...]/proj/node_modules/ngx-messages/tslint.json: Could not find custom rule directory: node_modules/codelyzer Edit: okay after looking at the code (and glob doc), I figured that this conf works: |
As it is said, we should exclude like so:
|
If anyone has a problem with exclude option not working AT ALL. Make sure you don't have any folders/files starting with a DOT (".") in your project path. |
@brinkt that sounds like a bug on our side. Would you be willing to submit a PR to add always |
@filipesilva Submitted a pull request: #9215 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)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/"
The text was updated successfully, but these errors were encountered: