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

chore(cosmic-proto): Add eslint coverage #10483

Merged
merged 3 commits into from
Nov 17, 2024

Conversation

gibson042
Copy link
Member

@gibson042 gibson042 commented Nov 14, 2024

Description

Some higher-level configuration is overriding the local .eslintignore, so this PR works around that by copying its lines into --ignore-pattern CLI options.

Security Considerations

n/a

Scaling Considerations

n/a

Documentation Considerations

n/a

Testing Considerations

n/a

Upgrade Considerations

n/a

@gibson042 gibson042 requested a review from turadg November 14, 2024 07:10
@gibson042 gibson042 requested a review from a team as a code owner November 14, 2024 07:10
Copy link

cloudflare-workers-and-pages bot commented Nov 14, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 86cd3c2
Status: ✅  Deploy successful!
Preview URL: https://41f1e1ee.agoric-sdk.pages.dev
Branch Preview URL: https://gibson-2024-11-cosmic-proto.agoric-sdk.pages.dev

View logs

"lint": "tsc",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc",
"lint:eslint": "eslint $(sed 's/#.*//; /[^[:space:]]/ s/^/--ignore-pattern /' .eslintignore) .",
Copy link
Member

Choose a reason for hiding this comment

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

This is unnecessarily hacky. The higher level config is at project root, so if that's causing problems we should fix it there.

But I'm not sure any of this is worth the effort. What do you want to eslint in this package? It's mostly codegen.

Copy link
Member Author

Choose a reason for hiding this comment

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

What do you want to eslint in this package? It's mostly codegen.

I encountered an issue here while working on another PR, but I don't remember where.

This is unnecessarily hacky. The higher level config is at project root, so if that's causing problems we should fix it there.

OK, fair point. Done.

@gibson042 gibson042 requested a review from turadg November 15, 2024 18:28
@gibson042 gibson042 added the automerge:squash Automatically squash merge label Nov 17, 2024
@mergify mergify bot merged commit 5fd303a into master Nov 17, 2024
81 checks passed
@mergify mergify bot deleted the gibson-2024-11-cosmic-proto-lint branch November 17, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:squash Automatically squash merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants