chore(v2): fix ignore paths and Prettier commands in themes#3865
Merged
slorber merged 3 commits intofacebook:masterfrom Dec 3, 2020
Merged
chore(v2): fix ignore paths and Prettier commands in themes#3865slorber merged 3 commits intofacebook:masterfrom
slorber merged 3 commits intofacebook:masterfrom
Conversation
|
Deploy preview for docusaurus-2 ready! Built without sensitive environment variables with commit 22b8a4e |
|
Size Change: +18 B (0%) Total Size: 157 kB ℹ️ View Unchanged
|
slorber
reviewed
Dec 2, 2020
.prettierignore
Outdated
| packages/docusaurus/lib/ | ||
| packages/docusaurus-init/lib/ | ||
| packages/docusaurus-plugin-client-redirects/lib/ | ||
| packages/docusaurus-*/lib/ |
Collaborator
Contributor
Author
There was a problem hiding this comment.
For this is responsible .gitignore, which do not include v1 lib. I can update .gitignore too.
Contributor
Author
There was a problem hiding this comment.
Ah, you mean the change should NOT exclude the files from v1 lib, right?
Contributor
Author
There was a problem hiding this comment.
This line in ignores deals with that, so Prettier and other tools will ignore all docusuaurs-*/libs but not the docusuaurs-1.x/lib.
|
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-3865--docusaurus-2.netlify.app/classic/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Motivation
It looks like after latest addition of
lib-nextand some other changes Prettier started to format unnecessary files.This PR rewrites the
.prettierignorepath into more universal format and adds--ignore-pathflag to the Prettier command in themes, so the ignores defined in.prettierignoreare respected.Have you read the Contributing Guidelines on pull requests?
Yes.
Test Plan
Local run of:
yarn prettieryarn --cwd ./packages/docusaurus-theme-bootstrap buildyarn lintRelated PRs
No.