mirror of https://github.com/vladmandic/automatic
Update languageOptions
parent
d7c65f428f
commit
72a7f87a6a
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue