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

test: add snapshot with compiled rule list #349

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

brantphoto
Copy link
Contributor

Added a snapshot of the compiled rules for this package.

pros:
now we can see which rules this package enables

cons:
perhaps harder to create a PR in github ui, as you'll have to update snapshots on change.

@brantphoto brantphoto requested a review from a team as a code owner November 27, 2024 16:51
@brantphoto
Copy link
Contributor Author

...looks like the snapshot is failing due the parser line the config output being env specific...
https://github.com/open-turo/eslint-config-typescript/actions/runs/12054837350/job/33613797129?pr=349
I might be able to hack it, omit this line, tbd

@brantphoto brantphoto force-pushed the t/add-snapshot-with-rules branch from cc887d9 to 0c5ea86 Compare November 27, 2024 17:02
Copy link

Release notes preview

No new release will be created.

If you are expecting a release, you will need to either fix a bug or add a feature.
Chores, CI, docs, refactoring, style and other changes will not trigger a release.

@brantphoto
Copy link
Contributor Author

fixed it! removed parser property from the snapshot and now the snapshot isn't env specific

Copy link

@Toolo Toolo left a comment

Choose a reason for hiding this comment

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

I like the idea. This gives visibility into what changes on each version and enforces a more thorough review on new rules

@brantphoto
Copy link
Contributor Author

@Toolo nice :)
I'll try to add to eslint-config-react as well

@brantphoto brantphoto merged commit 5e53d4d into main Nov 27, 2024
2 checks passed
@brantphoto brantphoto deleted the t/add-snapshot-with-rules branch November 27, 2024 18:12
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.

2 participants