Skip to content

Don't run linter after tests runs#50597

Merged
jakebailey merged 2 commits into
microsoft:mainfrom
jakebailey:remove-post-test-lint
Sep 12, 2022
Merged

Don't run linter after tests runs#50597
jakebailey merged 2 commits into
microsoft:mainfrom
jakebailey:remove-post-test-lint

Conversation

@jakebailey

@jakebailey jakebailey commented Sep 1, 2022

Copy link
Copy Markdown
Member

From everything I've heard from the team, everyone either hits Ctrl+C once the tests pass, or explicitly passes --lint=false. Remove the post-test task that runs linting; in a previous PR I moved linting to a separate CI job, so failing to fix a lint won't break a PRs tests (and will fail fast otherwise).

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Sep 1, 2022
@jakebailey

Copy link
Copy Markdown
Member Author

I'm going to split this PR in two; the cleanups can be unrelated to not running the linter and I have noticed other eslint problems to fix in the meantime.

@jakebailey jakebailey marked this pull request as draft September 6, 2022 20:10
@jakebailey jakebailey force-pushed the remove-post-test-lint branch from 744dc89 to e958b4d Compare September 6, 2022 20:17
@jakebailey jakebailey marked this pull request as ready for review September 6, 2022 20:17
@jakebailey jakebailey changed the title Don't run linter after tests runs, refactor/consolidate CI detection Don't run linter after tests runs Sep 6, 2022
@jakebailey

Copy link
Copy Markdown
Member Author

Coming back to this over the weekend, I think what I should actually do is default lint to false, and leave the code in place, so people can still pass --lint=true if they desire. Thoughts?

@sandersn

Copy link
Copy Markdown
Member

I think you can build that yourself from gulp runtests && gulp lint if you want. (or the npm run equivalents)

@jakebailey

Copy link
Copy Markdown
Member Author

Ah, duh, of course.

@jakebailey jakebailey merged commit 68d526c into microsoft:main Sep 12, 2022
@jakebailey jakebailey deleted the remove-post-test-lint branch September 12, 2022 20:30
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants