From 72a7f87a6a3d6baf303d69e1e67dfbb8b51b907f Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Sat, 3 Jan 2026 16:57:29 -0800 Subject: [PATCH] Update languageOptions --- eslint.config.mjs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index f637ce1df..ae1176e7e 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -20,6 +20,12 @@ const jsConfig = defineConfig([ name: 'js/config', files: helpers.extensions.allFiles, ...js.configs.recommended, + languageOptions: { + ecmaVersion: 'latest', + parserOptions: { + ecmaVersion: 'latest', + }, + }, }, pluginPromise.configs['flat/recommended'], // Stylistic plugin @@ -38,6 +44,10 @@ const jsConfig = defineConfig([ name: 'sdnext/js', files: helpers.extensions.allFiles, languageOptions: { + ecmaVersion: 'latest', + parserOptions: { + ecmaVersion: 'latest', + }, globals: { ...globals.builtin, ...globals.browser, @@ -116,9 +126,6 @@ const jsConfig = defineConfig([ sendNotification: 'readonly', monitorConnection: 'readonly', }, - parserOptions: { - ecmaVersion: 'latest', - }, }, rules: { camelcase: 'off',