Skip to content
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

add strict tsconfig lint step #1224

Merged
merged 6 commits into from
Oct 6, 2020
Merged

add strict tsconfig lint step #1224

merged 6 commits into from
Oct 6, 2020

Conversation

FredKSchott
Copy link
Owner

Changes

Testing

  • Added to CI

Docs

  • N/A

@FredKSchott FredKSchott requested a review from a team as a code owner October 5, 2020 22:33
@vercel
Copy link

vercel bot commented Oct 5, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pikapkg/snowpack/6k0ead6rs
✅ Preview: https://snowpack-git-tsconfig-lint.pikapkg.vercel.app

.github/workflows/test.yml Outdated Show resolved Hide resolved
esinstall/tsconfig.json Outdated Show resolved Hide resolved
Copy link
Collaborator

@drwpow drwpow left a comment

Choose a reason for hiding this comment

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

Approving because I don’t want to block, but soft-recommendation to having lint be its own job in GitHub actions (that only runs on one Node version, on Linux only). But as-is happy to merge this. Nice!

.github/workflows/lint.yml Outdated Show resolved Hide resolved
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.node_version }}
uses: actions/setup-node@v2
with:
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can remove the with: setting as we’re not using a matrix

Copy link
Owner Author

Choose a reason for hiding this comment

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

ah, no we still need to tell it which version of Node to use, but you are right that this env value was missing

Copy link
Collaborator

Choose a reason for hiding this comment

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

It defaults to LTS, but if you wanted to specify you could just add:

  with:
    node-version: '12.x'

Copy link
Collaborator

Choose a reason for hiding this comment

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

Or what you did above! 🙂

@drwpow
Copy link
Collaborator

drwpow commented Oct 5, 2020

Ah shoot… looks like yarn build may be required as part of the lint job? (so that TS knows where to find esinstall’s types)

@FredKSchott
Copy link
Owner Author

ah boo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants