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 typescript-eslint to widgetv2 #184

Merged
merged 11 commits into from
Aug 22, 2024
Merged

Add typescript-eslint to widgetv2 #184

merged 11 commits into from
Aug 22, 2024

Conversation

toddkao
Copy link
Collaborator

@toddkao toddkao commented Aug 21, 2024

Add typescript-eslint to widgetv2

Don't allow unused imports/variables

Screenshot 2024-08-22 at 12 11 04 PM

Don't allow console.log

Screenshot 2024-08-22 at 12 09 25 PM

Error when hooks don't follow rules of hooks

Screenshot 2024-08-22 at 12 22 13 PM

Error when hooks have missing dependencies

Screenshot 2024-08-22 at 12 08 00 PM

Copy link

vercel bot commented Aug 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
widget-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 22, 2024 4:25pm

Copy link

changeset-bot bot commented Aug 21, 2024

⚠️ No Changeset found

Latest commit: a7806ca

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@toddkao toddkao changed the title Add typescript-eslint to project Add typescript-eslint to widgetv2 Aug 22, 2024
Comment on lines +1 to +21
name: ESLint Widget v2

on:
pull_request:
paths:
- 'packages/widget-v2/**'

jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: yarn install
working-directory: packages/widget-v2
- name: Run ESLint
run: yarn lint
working-directory: packages/widget-v2
Copy link
Collaborator Author

@toddkao toddkao Aug 22, 2024

Choose a reason for hiding this comment

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

@codingki how do you feel about us adding this? it'll cause builds that have errors when running yarn lint to be red

I just added it

@toddkao toddkao marked this pull request as ready for review August 22, 2024 16:21
@toddkao toddkao requested a review from NotJeremyLiu as a code owner August 22, 2024 16:21
@toddkao toddkao merged commit 8262df8 into main Aug 22, 2024
4 checks passed
@toddkao toddkao deleted the FRE-929 branch August 22, 2024 16:24
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