From 09b5d95af25c3d3472c3aba350f779b75dd212c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20L=C3=B3pez=20-=20https=3A//www=2Evauxoo=2Eco?= =?UTF-8?q?m/?= Date: Wed, 2 Nov 2022 11:52:19 -0600 Subject: [PATCH] [FIX] eslint: Fix 'import' sentence error (#80) Fix the following error Parsing error: 'import' and 'export' may appear only with 'sourceType: module' Fixing using the following solution: https://github.com/AtomLinter/linter-eslint/issues/462#issuecomment-190770417 --- src/pre_commit_vauxoo/cfg/.eslintrc.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pre_commit_vauxoo/cfg/.eslintrc.json b/src/pre_commit_vauxoo/cfg/.eslintrc.json index 98a4323..6095bde 100644 --- a/src/pre_commit_vauxoo/cfg/.eslintrc.json +++ b/src/pre_commit_vauxoo/cfg/.eslintrc.json @@ -237,6 +237,7 @@ "yoda": "error" }, "parserOptions": { - "ecmaVersion": "2021" + "ecmaVersion": "2021", + "sourceType": "module" } }