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

Update CONTRIBUTING.md to mention linting tools #28141

Merged
merged 4 commits into from
Jul 25, 2023
Merged

Conversation

queengooborg
Copy link
Collaborator

This PR updates CONTRIBUTING.md, primarily to mention the linting tools that we use and how the contributor can use them as well. This also makes a few quality-of-life changes to the rest of the documentation.

@queengooborg queengooborg requested a review from a team as a code owner July 24, 2023 05:28
@queengooborg queengooborg requested review from dipikabh and removed request for a team July 24, 2023 05:28
CONTRIBUTING.md Outdated Show resolved Hide resolved
Co-authored-by: Brian Thomas Smith <[email protected]>
CONTRIBUTING.md Outdated Show resolved Hide resolved

If you have a [local checkout](#forking-and-cloning-the-repository) of the repository and have [installed the dependencies](#preparing-the-project), or you are using [github.dev](https://github.dev), a pre-commit hook will be installed which automatically runs while making a commit. To save some headache and improve your work flow, you may wish to [configure your editor to automatically run Prettier](https://prettier.io/docs/en/editors.html). Alternatively, you may run `yarn fix:md` in the command line to manually format all Markdown files.

> **Note:** Automatically formatting changes does not work for pull requests opened using the GitHub Web UI as described in the ["Simple changes" section](#simple-changes). This may result in failed status checks on pull requests. If you're not sure about how to fix this, [get in touch with us](https://developer.mozilla.org/en-US/docs/MDN/Community/Communication_channels) for help.
Copy link
Collaborator

@hamishwillee hamishwillee Jul 24, 2023

Choose a reason for hiding this comment

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

Grrrrr. We should not have to write this. Any change you can make that can fail lint should auto-lint.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Well, now Prettier formatting is no longer required to pass PR checks, so I guess this statement isn't valid any longer.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Its not valid, but something similar might be useful. The linter still runs and gives warnings to add lines around code blocks and such that need to be fixed.

Co-authored-by: Hamish Willee <[email protected]>
Copy link
Contributor

@dipikabh dipikabh left a comment

Choose a reason for hiding this comment

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

Thanks, @queengooborg! I got just one comment, but also leaving a +1.

CONTRIBUTING.md Outdated Show resolved Hide resolved
Co-authored-by: Dipika Bhattacharya <[email protected]>
@queengooborg queengooborg merged commit 24f9877 into main Jul 25, 2023
5 checks passed
@queengooborg queengooborg deleted the contributing.md branch July 25, 2023 02:33
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.

4 participants