From 0aa5f44aad814292bb7f1c1dbc58749ccb277d00 Mon Sep 17 00:00:00 2001 From: Nicolas Sutter Date: Wed, 21 Jun 2023 17:32:44 +0200 Subject: [PATCH] fix: add `sourceType: 'module'` by default in js config since we mostly use es6 code, this would display errors --- src/javascript/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/javascript/index.ts b/src/javascript/index.ts index d7554c4..3c79742 100644 --- a/src/javascript/index.ts +++ b/src/javascript/index.ts @@ -5,7 +5,8 @@ export = defineConfig({ '../common' ], parserOptions: { - ecmaVersion: 'latest' + ecmaVersion: 'latest', + sourceType: 'module', }, env: { node: true,