From f7b0739d7dc939a785104f34b6066c2c195cfad0 Mon Sep 17 00:00:00 2001 From: ankittre2000 Date: Tue, 2 Jan 2024 08:40:42 -0500 Subject: [PATCH 1/2] Update prettier --- bin/gltf-pipeline.js | 4 ++-- lib/removeUnusedElements.js | 5 ++--- package.json | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/bin/gltf-pipeline.js b/bin/gltf-pipeline.js index 99cfa371..f76745be 100755 --- a/bin/gltf-pipeline.js +++ b/bin/gltf-pipeline.js @@ -221,8 +221,8 @@ const run = inputIsBinary ? processGlb : glbToGltf : outputIsBinary - ? gltfToGlb - : processGltf; + ? gltfToGlb + : processGltf; function saveSeparateResources(separateResources) { const resourcePromises = []; diff --git a/lib/removeUnusedElements.js b/lib/removeUnusedElements.js index 94767869..4b31186d 100644 --- a/lib/removeUnusedElements.js +++ b/lib/removeUnusedElements.js @@ -593,9 +593,8 @@ getListOfElementsIdsInUse.buffer = function (gltf) { defined(bufferView.extensions) && defined(bufferView.extensions.EXT_meshopt_compression) ) { - usedBufferIds[ - bufferView.extensions.EXT_meshopt_compression.buffer - ] = true; + usedBufferIds[bufferView.extensions.EXT_meshopt_compression.buffer] = + true; } }); diff --git a/package.json b/package.json index 0c04335f..46341c36 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "jasmine-spec-reporter": "^7.0.0", "jsdoc": "^4.0.0", "nyc": "^15.1.0", - "prettier": "3.0.3", + "prettier": "3.1.1", "lint-staged": "^15.0.2" }, "lint-staged": { From b907f8e9a5e44caf82a32a879a76836be476fc68 Mon Sep 17 00:00:00 2001 From: ankittre2000 Date: Tue, 2 Jan 2024 08:51:00 -0500 Subject: [PATCH 2/2] Update global require --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 18807f9f..2217510e 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -/*eslint-disable global-require*/ +/*eslint-disable n/global-require*/ "use strict"; module.exports = { getStatistics: require("./lib/getStatistics"),