chore(eslint): Add ecmaVersion and sourceType to 'languageOptions'
This commit is contained in:
1 parent
a8a36dac1b
commit
d4a08214e8
1 file changed
+7
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user