From e94b6b1bb98e17c44a96498a71546ae71d3bb2dd Mon Sep 17 00:00:00 2001 From: Ashurov Georgy Date: Thu, 26 Sep 2024 23:39:28 +0300 Subject: [PATCH] Fix problem with es6 by updating eslint configuration --- eslint.config.mjs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 17aa35b..c1a93bd 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -3,6 +3,15 @@ import pluginJs from '@eslint/js'; import eslintConfigPrettier from 'eslint-config-prettier'; export default [ + { + files: ['webpack.config.js'], + env: { + node: true, + }, + globals: { + ...globals.node, + }, + }, { languageOptions: { globals: { @@ -10,10 +19,6 @@ export default [ Handlebars: 'readonly', }, }, - files: ['webpack.config.js'], - env: { - node: true, - }, }, pluginJs.configs.recommended, eslintConfigPrettier,