(ci): add a lint job so PRs will require passing lint#378
Merged
swyxio merged 1 commit intojaredpalmer:masterfrom Dec 18, 2019
Merged
(ci): add a lint job so PRs will require passing lint#378swyxio merged 1 commit intojaredpalmer:masterfrom
swyxio merged 1 commit intojaredpalmer:masterfrom
Conversation
- a few recent PRs got in without passing lint, this breaks all future PRs/branches/commits because pre-commit will fail when it runs lint
Collaborator
Author
|
Ok, this is a bit weird that it passes lint prior to #377 being merged... The error I was getting was: But then the |
ambroseus
approved these changes
Dec 18, 2019
Collaborator
|
great calls in every respect. |
Collaborator
Author
|
Ah, I see, #370 added a commit later which bumped #377 was still needed to get rid of the big warning and to support optional chaining / nullish coalescing in |
sebald
added a commit
to sebald/tsdx
that referenced
this pull request
Dec 19, 2019
* master: (26 commits) (deps/lint): upgrade @typescript-eslint to support ?. and ?? (jaredpalmer#377) (ci): add a lint job so PRs will require passing lint (jaredpalmer#378) (clean): remove .rts_cache_* from storybook gitignore (jaredpalmer#375) Add optional chaining and nullish coalescing operators support (jaredpalmer#370) Added Storybook template (jaredpalmer#318) (fix/ci): GitHub Actions should run on PRs as well (fix/format): formatting of jaredpalmer#366 didn't pass lint Add prepare script to generated project (jaredpalmer#334) default jest to watch mode when not in CI (jaredpalmer#366) (fix): respect tsconfig esModuleInterop flag (jaredpalmer#327) fix: minor typo update rollup deps and plugins update to ts 3.7 Remove unnecessary yarn install command in GH action update README.md update README.md Use node_modules/.cache/... as cacheRoot (jaredpalmer#329) fix(lint): Only default to src test if they exist (jaredpalmer#344) Fix error when providing babel/preset-env without options (jaredpalmer#350) Replaced some sync methods for their async version ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PRs/branches/commits because pre-commit will fail when it runs lint
Turns out
lintwas never running in CI! Which explains why #370 and #366 passed (and my confusion in #373 )This should make formatting fixes like #372 and #377 unnecessary in the future if only PRs that pass lint are merged.
I limited this to run on Node v10 and
ubuntu-latest-- not sure if a matrix is necessary for self-linting. The existing test suite already has tests fortsdx lintand that runs over the matrix ofc.