From e5f7e019cdca7e7c5973b3b3275de5e867fdd884 Mon Sep 17 00:00:00 2001 From: Vitaly Date: Wed, 27 Sep 2023 19:48:50 +0300 Subject: [PATCH] add spacing rules --- .eslintrc.json | 5 +++++ src/dragndrop.ts | 2 +- src/mcTypes.ts | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index c9aae963..12a50e94 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -4,6 +4,11 @@ "!*.js" ], "rules": { + "no-multi-spaces": "error", + "space-in-parens": [ + "error", + "never" + ], "object-curly-spacing": [ "error", "always" diff --git a/src/dragndrop.ts b/src/dragndrop.ts index 46a20788..fc2f5666 100644 --- a/src/dragndrop.ts +++ b/src/dragndrop.ts @@ -32,7 +32,7 @@ window.addEventListener('drop', async e => { alert('Exit current world first, before loading a new one.') return } - await openWorldDirectory(filehandle ) + await openWorldDirectory(filehandle) } } else { await handleDroppedFile(item.getAsFile()) diff --git a/src/mcTypes.ts b/src/mcTypes.ts index e7f6c7af..ee87b9c9 100644 --- a/src/mcTypes.ts +++ b/src/mcTypes.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-multi-spaces */ // todo move from here //@ts-format-ignore-region