Skip to content
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

Integrate Prettier for all JS source #717

Closed
wants to merge 5 commits into from
Closed

Integrate Prettier for all JS source #717

wants to merge 5 commits into from

Commits on Jul 1, 2024

  1. js: Use tabs instead of spaces in meshopt_decoder_reference

    This is in preparation to prettier integration
    zeux committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    e078d2e View commit details
    Browse the repository at this point in the history
  2. Reformat all JS source with Prettier

    This makes the code style consistent across various uses of JS and also
    improves integration with editors that use LSP format-on-save like Zed.
    zeux committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    c73e63f View commit details
    Browse the repository at this point in the history
  3. Adjust Wasm patching for .JS modules to align with Prettier changes

    Instead of using a variable prefix we now use a comment suffix to
    indicate embedding which allows the string literal to be split onto its
    own line.
    
    Also adjust regexes for UMD which fixes .module.js building.
    zeux committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    086b416 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1567d9c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9a8d520 View commit details
    Browse the repository at this point in the history