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

feat: shared eslint and prettier config #1884

Merged
merged 15 commits into from
Dec 1, 2024
Merged

feat: shared eslint and prettier config #1884

merged 15 commits into from
Dec 1, 2024

Conversation

vacekj
Copy link
Member

@vacekj vacekj commented Oct 30, 2024

this pr adds a package with a shared eslint and prettier configs, to be published to npm

fixes #1762

Copy link

changeset-bot bot commented Oct 30, 2024

🦋 Changeset detected

Latest commit: aa680f7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@penumbra-zone/configs Minor

Not sure what this means? Click here to learn what changesets are.

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

Copy link
Contributor

@TalDerei TalDerei left a comment

Choose a reason for hiding this comment

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

let’s use prax-wallet/prax#228 as a testing ground before merging.

"description": "Shared Penumbra configurations",
"repository": "penumbra-zone/web",
"type": "module",
"scripts": {},
Copy link
Contributor

@TalDerei TalDerei Nov 4, 2024

Choose a reason for hiding this comment

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

our current web <> prax local dev workflow is

web: pnpm install && pnpm build && pnpm dev:pack
web: pnpm dev (separate terminal)
prax: pnpm -w add:tgz ~/PATH_TO_WEB_REPO/web/packages/*/penumbra-zone-*.tgz && pnpm -w syncpack fix-mismatches && pnpm dev

can we update the scripts to include build and pack steps so that the eslint package bundles a .tgz and allows pnpm overrides to watch for changes during prax / dex explorer development? This requires a tsconfig.json.

  "scripts": {
    "build": "tsc --build --verbose",
    "dev:pack": "tsc-watch --onSuccess \"$npm_execpath pack\"",
  },

correspondingly, the concurrency settings in the package.json would need to be updated to 17.

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this isn't strictly necessary for dev since we shouldn't expect the eslint / prettier configs to change often.

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree that the configs are not expected to change often or dramatically - and they shouldn't, by design. LInts should not get in our way, but rather keep us safe from missteps.
I am testing with prax wallet now.

Copy link
Member

Choose a reason for hiding this comment

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

are these instructions in a readme anywhere? would be helpful to have in the prax repo

Copy link
Contributor

Choose a reason for hiding this comment

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

are these instructions in a readme anywhere? would be helpful to have in the prax repo

we need to clarify these instructions in prax: prax-wallet/prax#149

@TalDerei
Copy link
Contributor

TalDerei commented Nov 20, 2024

what's the status of this eslint work? was this locally tested against prax-wallet/prax#228?

@TalDerei TalDerei self-requested a review November 20, 2024 12:20
@vacekj vacekj merged commit ec921ea into main Dec 1, 2024
6 checks passed
@vacekj vacekj deleted the shared-config branch December 1, 2024 18:44
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.

Publish eslint config
3 participants