Skip to content

fix(@angular/cli): ensure lint command auto-add exits after completion #22938

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 1 commit into from
Apr 4, 2022

Conversation

clydin
Copy link
Member

@clydin clydin commented Apr 4, 2022

When no lint target is present for a project, the command will ask if linting should be added to the project.
However, after adding the package, the command incorrectly kept executing and then failing due to the lint command not being fully setup yet.
Instead, the command will now exit after adding the linting package. This also allows inspection and/or adjustment of the linting configuration prior to actually linting.

Fixes: #22937

When no lint target is present for a project, the command will ask if linting should be added to the project.
However, after adding the package, the command incorrectly kept executing and then failing due to the lint command not being fully setup yet.
Instead, the command will now exit after adding the linting package. This also allows inspection and/or adjustment of the linting configuration prior to actually linting.

Fixes: angular#22937
@clydin clydin added the target: patch This PR is targeted for the next patch release label Apr 4, 2022
@clydin clydin requested a review from alan-agius4 April 4, 2022 15:37
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Apr 4, 2022
@clydin clydin merged commit 49dc63d into angular:13.3.x Apr 4, 2022
@clydin clydin deleted the lint/exit-after-add-13.3.x branch April 4, 2022 16:24
@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 May 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatic ng add of @angular-eslint/schematics still throws the first time based on missing lint target
2 participants