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

docs: base Testing Rules documentation #8033

Merged

Conversation

c0sta
Copy link
Contributor

@c0sta c0sta commented Dec 7, 2023

PR Checklist

Overview

Fixes: #4875

Submitting this as a draft to gather some suggestions/ideas and understand if I'm going the right way here.

I did all these steps inside Local Linking and I was able to see my console.log running at my downstream repository, from what I've tried these steps are very straightforward so I'm not sure if there any more steps or more examples that I could point out here.

Tonight I aim to review and be more descriptive on the "run your lint script" step because it seems kinda "empty".

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @c0sta!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint.

Copy link

netlify bot commented Dec 7, 2023

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit caaa5a7
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/659c841147277e00070aabf6
😎 Deploy Preview https://deploy-preview-8033--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 99 (🟢 up 3 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 98 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@c0sta c0sta marked this pull request as draft December 7, 2023 11:23
Comment on lines 64 to 65
- `npm run lint`
- `yarn lint`
Copy link
Member

Choose a reason for hiding this comment

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

The problem with explicitly listing out "lint" scripts is that there are so many different ways folks can do it, it's hard to express all of them. What about pnpm users? What about folks who have different "lint" scripts?

Suggestion: instead of saying lint and then this list, use a more casual phrase like "your repository's lint script".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm got it, I was trying something like the commands listed on the Global Linking but that's right, just pointing out that the user needs to run the repo lint script sounds better.

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense. Something already existing in our docs in one way is no guarantee that that's the right way 😄

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Thanks for the early peek @c0sta, looking good so far! Left some early stage comments. Definitely open to talking about any+all of them if you have thoughts! :)

@c0sta
Copy link
Contributor Author

c0sta commented Dec 18, 2023

I'm putting this PR on Ready for Review, any kinda of suggestion/idea just let me know and I'll be happy to help with it.

@c0sta c0sta marked this pull request as ready for review December 18, 2023 11:40
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Looking great! Just a few suggestions, but if you hate both of them I'd be absolutely fine switching to approval 😄

Cartoon penguin in holiday attire happily reading by a fire

docs/contributing/local-development/Local_Linking.mdx Outdated Show resolved Hide resolved
docs/contributing/local-development/Local_Linking.mdx Outdated Show resolved Hide resolved
@JoshuaKGoldberg JoshuaKGoldberg added the awaiting response Issues waiting for a reply from the OP or another party label Dec 24, 2023
Gabriel Costa Moura and others added 2 commits December 27, 2023 20:35
@JoshuaKGoldberg
Copy link
Member

Oh and:

- [X] Addresses an existing open issue: fixes #000

That's where you'd typically put the fixes #4875 🙂

@JoshuaKGoldberg
Copy link
Member

At a glance this is looking great! I'll hold off reviewing again until explicitly re-requested.

(just posting in case you'd meant to click the re-request button)

@c0sta c0sta requested a review from JoshuaKGoldberg January 9, 2024 11:13
@github-actions github-actions bot removed the awaiting response Issues waiting for a reply from the OP or another party label Jan 9, 2024
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Great, thanks! This will be nice and useful for folks getting started with development. 🙌

@JoshuaKGoldberg JoshuaKGoldberg merged commit 9399029 into typescript-eslint:main Jan 9, 2024
56 of 58 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: How to test PR changes to rules
4 participants