Conversation
|
Deploy preview for docusaurus-preview ready! Built with commit ad840b9 |
endiliey
left a comment
There was a problem hiding this comment.
We might need to delete local prettier related files in v2 folder. We have another .prettierrc and prettier command in v2 folder
|
@endiliey Thanks for the reminder. I also removed the |
| "proseWrap": "never", | ||
| "singleQuote": true, | ||
| "trailingComma": "es5" | ||
| "trailingComma": "all" |
There was a problem hiding this comment.
This broke Node 6 support (LTS until April 2019) 🙃
But I assume my CI file could be tweaked to not build docs on all supported versions...
https://github.com/express-validator/express-validator/blob/b4f0c256d281fb917b59221f4bfa93c2d81cd91a/.travis.yml
There was a problem hiding this comment.
My apologies. We did mention that Docusaurus requires Node 8 and above: https://docusaurus.io/docs/en/installation#installing-docusaurus
Motivation
Enable Prettier for v2 files. I took the opportunity to clean up all the prettier commands into one since we don't run them separately anyway. Also, use a
**/*.jspattern to just run on every file. We have no use case for not running Prettier on any directory for now.Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
CI.
Related PRs
NA.