mirror of
https://github.com/openharmony/third_party_meshoptimizer.git
synced 2026-07-19 12:03:07 -04:00
Add Prettier config for JS/TS/HTML formatting
This helps ensure a consistent code style and helps editors like Zed that do LSP format-on-save by default.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"useTabs": true,
|
||||
"tabWidth": 4,
|
||||
"semi": true,
|
||||
"singleQuote": true,
|
||||
"printWidth": 150,
|
||||
}
|
||||
@@ -107,6 +107,9 @@ dev: $(DEMO)
|
||||
format:
|
||||
clang-format -i $(LIBRARY_SOURCES) $(DEMO_SOURCES) $(GLTFPACK_SOURCES)
|
||||
|
||||
formatjs:
|
||||
prettier -w js/*.js gltf/*.js demo/*.html js/*.ts
|
||||
|
||||
js: js/meshopt_decoder.js js/meshopt_decoder.module.js js/meshopt_encoder.js js/meshopt_encoder.module.js js/meshopt_simplifier.js js/meshopt_simplifier.module.js
|
||||
|
||||
symbols: $(BUILD)/amalgamated.so
|
||||
|
||||
Reference in New Issue
Block a user