Skip to content

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

Merged
merged 4 commits into from
Jul 26, 2018
Merged

Fix 11034 #11648

merged 4 commits into from
Jul 26, 2018

Conversation

hansl
Copy link
Contributor

@hansl hansl commented Jul 24, 2018

See commits for more information.

Fixes #11034

…ble no-any

Not entirely removed the usage of any but its a step in the right direction.
@hansl hansl force-pushed the fix-11034 branch 2 times, most recently from dec1bc1 to c21bee7 Compare July 25, 2018 00:04
}

if (!isSameBuilder) {
throw new Error('Architect commands with multiple targets cannot specify overrides.'
Copy link
Contributor

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?

Copy link
Contributor Author

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))
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

hansl added 3 commits July 25, 2018 10:07
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.
@hansl hansl merged commit aeb4ff5 into angular:master Jul 26, 2018
@hansl hansl deleted the fix-11034 branch November 28, 2018 23:37
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LintFix config option disappeared in v6?! (ng generate produces invalid code!)
3 participants