webaverse / app

Web metaverse client
https://app.webaverse.com
MIT License
344 stars 207 forks source link

Enable prettier on a per-file basis to migrate the codebase into formatted code #3736

Closed cryptojcdenton closed 2 years ago

cryptojcdenton commented 2 years ago

Adding the following to package.json along with installing prettier lets you use prettier on a per-file basis, using the requirePragma option:

  "prettier": {
    "singleQuote": true,
    "requirePragma": true
  },

This means the webaverse codebase can slowly be migrated, file-by-file, without impacting day to day usability. Prettier was attempted before, but I suspect without this option making the migration cumbersome.

cryptojcdenton commented 2 years ago

Closing since this is in upstream, https://github.com/webaverse-studios/app