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: prettier check #110

Merged
merged 2 commits into from
Jul 11, 2023
Merged

ci: prettier check #110

merged 2 commits into from
Jul 11, 2023

Conversation

samsiegart
Copy link
Contributor

No description provided.

Comment on lines 86 to 87
"pretty-check": "yarn prettier --check '**/*.{js,jsx,ts,tsx}'",
"pretty-fix": "yarn prettier --write '**/*.{js,jsx,ts,tsx}'",
Copy link
Member

Choose a reason for hiding this comment

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

Please align these commands cwith agoric-sdk:

Suggested change
"pretty-check": "yarn prettier --check '**/*.{js,jsx,ts,tsx}'",
"pretty-fix": "yarn prettier --write '**/*.{js,jsx,ts,tsx}'",
"lint:format": "yarn prettier --check '**/*.{js,jsx,ts,tsx}'",
"format": "yarn prettier --write '**/*.{js,jsx,ts,tsx}'",

"format" instead of "pretty" because we could change formatting tools and wouldn't want to reprogram muscle memory. "lint:format" so that the run-s in lint does that one too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -19,4 +19,5 @@ jobs:
cache: 'yarn'
- run: yarn install --frozen-lockfile # optional, --immutable
- run: cd wallet && yarn lint
- run: cd wallet && yarn pretty-check
Copy link
Member

Choose a reason for hiding this comment

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

not necessary if you name the check lint:format.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 11, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: b5e2e25
Status: ✅  Deploy successful!
Preview URL: https://c7c0841d.wallet-app.pages.dev
Branch Preview URL: https://prettier-ci.wallet-app.pages.dev

View logs

@samsiegart samsiegart requested a review from turadg July 11, 2023 17:53
@samsiegart samsiegart merged commit 2e3810b into main Jul 11, 2023
2 checks passed
@samsiegart samsiegart deleted the prettier-ci branch July 11, 2023 18:47
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.

3 participants