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

yarn format - prettier improvements & add .editorconfig #1471

Merged
merged 11 commits into from
May 13, 2024

Conversation

eoghanmurray
Copy link
Contributor

@eoghanmurray eoghanmurray commented May 8, 2024

  • add .editorconfig (prettier falls back to config from that file)
  • fix that the .changeset/*.md files were being corrected by prettier, although the CHANGESETS plugin was generating them with double quotes
  • add test html files to yarn:format (this was a bad idea as it messed with the expected snapshot output)
  • fix some malformed test HTML that came up from running prettier (don't think these were deliberate)
  • .prettierignore: ignore deliberately malformed HTML files used for testing [update: these are no longer included in prettier]
  • convenience: add a yarn format:head command to just run prettier on the files you've recently changed

…wing down prettier), and the `singleQuote` prettier option conflicts with that generated by the changesets github plugin
…make an exception for (all new) .changesets to use the double quote, which they should be generated with
Copy link

changeset-bot bot commented May 8, 2024

🦋 Changeset detected

Latest commit: c58f9c2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

…hese are authoring mistakes, rather than deliberately malformed html
.changeset/format-head-prettier.md Outdated Show resolved Hide resolved
.prettierignore Show resolved Hide resolved
@eoghanmurray eoghanmurray merged commit 26c331b into rrweb-io:master May 13, 2024
6 checks passed
eoghanmurray added a commit to eoghanmurray/rrweb that referenced this pull request May 22, 2024
Some dev improvements:
* Add .editorconfig config file https://editorconfig.org/
* move the singleQuote spec into .editorconfig and add old .changesets/*.md to .prettierignore so that we don't incorrectly reformat new changeset files to single quote from the double quote which they can be autogenerated with in github
* .gitignore Ignore emacs chaff files
* Add `yarn format:head` a convenience command to run prettier against just those files in the head commit
* Some mention of `yarn format` in the docs
* Fix some test html closing tags; authoring mistakes, rather than deliberately malformed html — picked up by an explicit `yarn prettier --write '**/*.html'`
jxiwang pushed a commit to amplitude/rrweb that referenced this pull request Jul 31, 2024
Some dev improvements:
* Add .editorconfig config file https://editorconfig.org/
* move the singleQuote spec into .editorconfig and add old .changesets/*.md to .prettierignore so that we don't incorrectly reformat new changeset files to single quote from the double quote which they can be autogenerated with in github
* .gitignore Ignore emacs chaff files
* Add `yarn format:head` a convenience command to run prettier against just those files in the head commit
* Some mention of `yarn format` in the docs
* Fix some test html closing tags; authoring mistakes, rather than deliberately malformed html — picked up by an explicit `yarn prettier --write '**/*.html'`
billyvg added a commit to getsentry/rrweb that referenced this pull request Sep 6, 2024
Merges the following commits:

* [Ensure there is separation of
timestamps](rrweb-io#1455)
* [perf(snapshot): avoid recreate element a every
time](rrweb-io#1387)
* [Fix that blob urls persist on the shared anchor element and can't be
later modified](rrweb-io#1467)
* [yarn format - prettier improvements & add
.editorconfig](rrweb-io#1471)
* [Fixup for background-clip
replacement](rrweb-io#1476)
* [Fix and test for bug](rrweb-io#1481)
jxiwang pushed a commit to amplitude/rrweb that referenced this pull request Oct 16, 2024
Some dev improvements:
* Add .editorconfig config file https://editorconfig.org/
* move the singleQuote spec into .editorconfig and add old .changesets/*.md to .prettierignore so that we don't incorrectly reformat new changeset files to single quote from the double quote which they can be autogenerated with in github
* .gitignore Ignore emacs chaff files
* Add `yarn format:head` a convenience command to run prettier against just those files in the head commit
* Some mention of `yarn format` in the docs
* Fix some test html closing tags; authoring mistakes, rather than deliberately malformed html — picked up by an explicit `yarn prettier --write '**/*.html'`
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