Update languageOptions

pull/4521/head
awsr 2026-01-03 16:57:29 -08:00
parent d7c65f428f
commit 72a7f87a6a
No known key found for this signature in database
1 changed files with 10 additions and 3 deletions

View File

@ -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',