You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new Angular workspace with a project named @company/app
In projects/company/app/src/apis/widgets add at least one TS file with an error TS lint will catch
In angular.json add this glob to the array under projects.@company/app.architect.lint.options.exclude: projects/company/app/src/apis/**"
Run ng lint @company/app
The log given by the failure
Linter errors for files under projects/company/app/src/apis/widgets/**
Desired functionality
The glob seems like it should match all files under app/src/apis/widgets and exclude them. The path is relative to the angular.json file and is consistent with other paths in the architect configuration.
Oddly, **/projects/company/app/src/apis/widgets/**does exclude the files. Also, ./projects/company/app/src/apis/widgets/**does not.
Related issue
The exclude option in the tslint.json file inside projects/company/app appears to get ignored or clobbered by the angular.json setting. Ideally you could exclude files using tslint.json and ensure editors that are unaware of angular.json also exclude the right files.
The text was updated successfully, but these errors were encountered:
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Repro steps
@company/app
projects/company/app/src/apis/widgets
add at least one TS file with an error TS lint will catchangular.json
add this glob to the array underprojects
.@company/app
.architect
.lint
.options
.exclude
:projects/company/app/src/apis/**"
ng lint @company/app
The log given by the failure
Linter errors for files under
projects/company/app/src/apis/widgets/**
Desired functionality
The glob seems like it should match all files under
app/src/apis/widgets
and exclude them. The path is relative to the angular.json file and is consistent with other paths in the architect configuration.Oddly,
**/projects/company/app/src/apis/widgets/**
does exclude the files. Also,./projects/company/app/src/apis/widgets/**
does not.Related issue
The
exclude
option in the tslint.json file insideprojects/company/app
appears to get ignored or clobbered by the angular.json setting. Ideally you could exclude files using tslint.json and ensure editors that are unaware of angular.json also exclude the right files.The text was updated successfully, but these errors were encountered: