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

Lint API #353

Merged
merged 12 commits into from
Nov 25, 2024
Merged

Lint API #353

merged 12 commits into from
Nov 25, 2024

Conversation

drwpow
Copy link
Collaborator

@drwpow drwpow commented Nov 24, 2024

Changes

Re-adds Lint API, improved for Terrazzo. Adds tests, too.

How to Review

  • Tests added; tests should pass

Copy link

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

Deploying terrazzo with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9bb214d
Status: ✅  Deploy successful!
Preview URL: https://3473b666.terrazzo.pages.dev
Branch Preview URL: https://lint.terrazzo.pages.dev

View logs

@@ -1,39 +1,26 @@
import { isTokenMatch } from '@terrazzo/token-tools';
import type { DocumentNode } from '@humanwhocodes/momoa';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Believe it or not, moved to .ts. It started being heavily untyped. But with all the rule additions, the scales tipped in favor of stronger, more-predictable types. It even caught a few untested bugs 🙃

Copy link

changeset-bot bot commented Nov 25, 2024

🦋 Changeset detected

Latest commit: 9bb214d

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

This PR includes changesets to release 12 packages
Name Type
@terrazzo/token-tools Minor
@terrazzo/parser Minor
@terrazzo/cli Minor
@terrazzo/plugin-css Major
@terrazzo/plugin-js Major
@terrazzo/plugin-sass Major
@terrazzo/plugin-swift Patch
@terrazzo/plugin-tailwind Major
@terrazzo/token-lab Patch
@terrazzo/use-color Patch
@terrazzo/react-color-picker Patch
@terrazzo/tiles Patch

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

@drwpow drwpow marked this pull request as ready for review November 25, 2024 05:05
@drwpow drwpow merged commit 80e04c3 into main Nov 25, 2024
9 checks passed
@drwpow drwpow deleted the lint branch November 25, 2024 06:31
@drwpow drwpow mentioned this pull request Nov 25, 2024
3 tasks
@github-actions github-actions bot mentioned this pull request Nov 25, 2024
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.

1 participant