From d4a08214e83798db1e797f48ed6372a826b83cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20=C5=9Ei=C5=9Fmano=C4=9Flu?= Date: Sat, 21 Dec 2024 00:56:04 +0300 Subject: [PATCH] chore(eslint): Add ecmaVersion and sourceType to 'languageOptions' --- Server/eslint.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Server/eslint.config.js b/Server/eslint.config.js index d3a1afe59..e6b8f7e7d 100644 --- a/Server/eslint.config.js +++ b/Server/eslint.config.js @@ -11,7 +11,13 @@ ESlint v9 configuration is different than v8. /** @type {import('eslint').Linter.Config[]} */ export default [ { - languageOptions: { globals: globals.node }, // Add Node.js globals + languageOptions: { + globals: { + ...globals.node, // Add Node.js globals + }, + ecmaVersion: 2023, + sourceType: "module", + }, }, pluginJs.configs.recommended, // Core JS rules mochaPlugin.configs.flat.recommended, // Mocha rules