From f8306fd2acc25ae144acf8f3f5857253c8d2bd10 Mon Sep 17 00:00:00 2001 From: Remco Veldkamp Date: Tue, 31 Oct 2023 01:24:33 +0100 Subject: [PATCH] Tweak linting --- .prettierrc | 3 +-- demo/js/demo.js | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.prettierrc b/.prettierrc index f412b7c6..fb4c0eeb 100644 --- a/.prettierrc +++ b/.prettierrc @@ -5,6 +5,5 @@ "trailingComma": "none", "semi": true, "endOfLine": "lf", - "printWidth": 120, - "spaceBeforeFunctionParen": false + "printWidth": 120 } diff --git a/demo/js/demo.js b/demo/js/demo.js index ad0aa0f9..14402d0f 100644 --- a/demo/js/demo.js +++ b/demo/js/demo.js @@ -32,6 +32,7 @@ let lastSegmentColor = new THREE.Color(`hsl(270, 100%, 100%)`).getHex(); topLayerColorInput.value = '#' + new THREE.Color(topLayerColor).getHexString(); lastSegmentColorInput.value = '#' + new THREE.Color(lastSegmentColor).getHexString(); +// eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars function initDemo() { // eslint-disable-line no-unused-vars, @typescript-eslint/no-unused-vars const settings = JSON.parse(localStorage.getItem('settings')); @@ -249,8 +250,8 @@ function updateUI() { } } +// eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars async function loadGCodeFromServer(file) { - // eslint-disable-line no-unused-vars, @typescript-eslint/no-unused-vars const response = await fetch(file); if (response.status !== 200) {