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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

feat: shared eslint and prettier config #1884

wants to merge 8 commits into from

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: 825e406

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
prax: pnpm -w add:tgz ~/PATH_TO_PRAX_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.

@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
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
2 participants