-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Docs: How to test PR changes to rules #4875
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
Comments
Great idea! |
I'd be happy to help on this one! But since Idk how to test the PR changes too, I would need some guidance or reference to somewhere I can get this info (Edit) - I just found this Local Developmenmt and it seems exactly what the issue asks, @JoshuaKGoldberg maybe it's already done? |
We filled out much of how to link locally https://typescript-eslint.io/contributing/local-development/local-linking. Once a project is linked with the steps there, what's next would be enabling the relevant lint rule in the project's ESLint config file and running the project's lint command. Does that make sense as a starting direction? |
Yeah, makes total sense to me! So I assume this would be a new section right under the Repository Linking, correct? Or just an extension of the Repository Linking section? |
Yeah I think having a section in that same page about testing rules would be great! |
Uh oh!
There was an error while loading. Please reload this page.
I am doing a PR for a new linter rule.
I would like to test this new linter rule on an existing repository, but it is unclear how to do that.
Normally, I would use
npm link
for this purpose, but that doesn't seem to be working properly, presumably because this is a monorepo.Please enumerate the steps for testing a PR in CONTRIBUTING.md.
The text was updated successfully, but these errors were encountered: