-
Notifications
You must be signed in to change notification settings - Fork 12k
Fix 11034 #11648
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
Fix 11034 #11648
Conversation
…ble no-any Not entirely removed the usage of any but its a step in the right direction.
dec1bc1
to
c21bee7
Compare
} | ||
|
||
if (!isSameBuilder) { | ||
throw new Error('Architect commands with multiple targets cannot specify overrides.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this error message to indicate that the problem is not the multiple targets, but rather that they have different builders?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
return Promise.resolve() | ||
|
||
// setup a double-quote tslint config | ||
.then(() => writeFile('src/app/tslint.json', nestedConfigContent)) | ||
.then(() => writeFile('tslint.json', nestedConfigContent)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: being at toplevel means it's not a tested config anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
It makes sense and is the only way to allow "ng lint --fix". If the builder is the same for all targets, overrides are allowed.
Before we only allowed tsconfig files (with includes added). This is necessary for the lint fixing for schematics to target specific files. Also added a feature that look for the tslint.json file if no tslint.json file or configuration object was passed. Skipping the first argument to the task constructor will look for the tslint closest to EVERY files being linted.
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. |
See commits for more information.
Fixes #11034