Skip to content

chore: Replace format-docs with format script #957

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

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Oct 22, 2021

npm run format will match the lint-staged behavior.

@@ -28,11 +28,11 @@
"git add"
],
"*.mdx": [
"prettier --write --parser=mdx",
"prettier --write",
Copy link
Member Author

@eps1lon eps1lon Oct 22, 2021

Choose a reason for hiding this comment

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

Prettier can infer the parser from the file extension. In our case, we don't need to specify the parser since we do have matching file extensions.

@eps1lon eps1lon merged commit 3f5720e into testing-library:main Oct 22, 2021
@eps1lon eps1lon deleted the chore/format-script branch October 22, 2021 09:17
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.

1 participant