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

ci: ignore eslint imports in example folders #972

Merged
merged 1 commit into from Dec 7, 2022

Conversation

BethanyBerkowitz
Copy link
Contributor

@BethanyBerkowitz BethanyBerkowitz commented Dec 6, 2022

Status

READY

Description

Currently, running npm run lint fails locally unless you remember to install all the dependencies in each of the example folders, plus we have to install all those dependencies in CI. Since these are just the examples and not the main code, we can save time in CI and have fewer local errors during development if we selectively ignore these.

Steps to Test or Reproduce

Outline the steps to test or reproduce the PR here.

npm run lint
  1. You should not see errors, even if you neglected to cd into each example folder and npm install
  2. CI should succeed without having to install these extra node modules just for linting

@BethanyBerkowitz
Copy link
Contributor Author

Note: reduces the lint step of CI from 2 minutes to 1 minute (ish)

Copy link
Member

@subzero10 subzero10 left a comment

Choose a reason for hiding this comment

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

🎉 Super clean! Nicely done.

@BethanyBerkowitz BethanyBerkowitz merged commit ac8b411 into master Dec 7, 2022
@BethanyBerkowitz BethanyBerkowitz deleted the BKB/eslint-example-node-modules branch June 7, 2023 18:00
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.

None yet

2 participants