Skip to content

Fix prettier glob to correctly navigate recursively and format missing files#107

Merged
kitten merged 1 commit into
FormidableLabs:masterfrom
manuelpuyol:fix-prettier-recursive-glob
Feb 17, 2021
Merged

Fix prettier glob to correctly navigate recursively and format missing files#107
kitten merged 1 commit into
FormidableLabs:masterfrom
manuelpuyol:fix-prettier-recursive-glob

Conversation

@manuelpuyol

Copy link
Copy Markdown
Contributor

Follow up on #106

I noticed that not all js files under src were linted. The format script was using src/**/*.js glob, but per prettier/prettier#2078 (comment) it should be enclosed in single quotes to function properly. Otherwise, it would only look for js files in a first-level directory such as src/components/Highlight.js and not src/vendor/prism/prism-core.js nor src/types.js

@kitten
kitten merged commit 89c194b into FormidableLabs:master Feb 17, 2021
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