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

add snippet to readme to run prettier for all supported files #942

Merged
merged 4 commits into from Dec 27, 2020

Conversation

tjenkinson
Copy link
Contributor

Might be too much for the readme so feel free to close, but it's a snippet of code I wrote to automatically run all extensions prettier supports through prettier without having to keep a static list of extensions up to date.

@codecov
Copy link

codecov bot commented Dec 24, 2020

Codecov Report

Merging #942 (1dbcb0a) into master (19d59fc) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #942   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines          611       611           
  Branches       144       144           
=========================================
  Hits           611       611           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 19d59fc...1dbcb0a. Read the comment docs.

@iiroj
Copy link
Member

iiroj commented Dec 24, 2020

Looks good to me, even though it's getting pretty prettier-specific (pardon the pun).

If you feel like it, the README could use some collapsible sections for these examples:
https://gist.github.com/pierrejoubert73/902cc94d79424356a8d20be2b382e1ab

@tjenkinson
Copy link
Contributor Author

Sounds good. Which ones should collapse? All of them?

@iiroj
Copy link
Member

iiroj commented Dec 24, 2020

Yeah, let's collapse all the examples, and the examples in the JS config section (titles start with Example:).

@tjenkinson
Copy link
Contributor Author

@iiroj done!

@iiroj iiroj merged commit 29a0b68 into lint-staged:master Dec 27, 2020
@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2021

🎉 This PR is included in version 10.5.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

This was referenced Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants