summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/lib/config/default-config.js
diff options
context:
space:
mode:
authorLuigi Pinca <luigipinca@gmail.com>2021-12-06 07:56:36 +0100
committerGitHub <noreply@github.com>2021-12-06 06:56:36 +0000
commit42b51afb75705f2ad95d7503d261868d5c72cc84 (patch)
tree4ca41647e5e9a4f140201065f796bf641395459f /tools/node_modules/eslint/lib/config/default-config.js
parentb323cec78f713bc113be7f6030d787804a9af5a0 (diff)
downloadnode-new-42b51afb75705f2ad95d7503d261868d5c72cc84.tar.gz
tools: update ESLint to 8.4.0
PR-URL: https://github.com/nodejs/node/pull/41085 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
Diffstat (limited to 'tools/node_modules/eslint/lib/config/default-config.js')
-rw-r--r--tools/node_modules/eslint/lib/config/default-config.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/node_modules/eslint/lib/config/default-config.js b/tools/node_modules/eslint/lib/config/default-config.js
index cb6f403380..a655a6d83c 100644
--- a/tools/node_modules/eslint/lib/config/default-config.js
+++ b/tools/node_modules/eslint/lib/config/default-config.js
@@ -26,7 +26,7 @@ exports.defaultConfig = [
/*
* Because we try to delay loading rules until absolutely
- * necessary, a proxy allows us to hook into the lazy-loading
+ * necessary, a proxy allows us to hook into the lazy-loading
* aspect of the rules map while still keeping all of the
* relevant configuration inside of the config array.
*/
@@ -46,7 +46,16 @@ exports.defaultConfig = [
".git/**"
],
languageOptions: {
- parser: "@/espree"
+ ecmaVersion: "latest",
+ sourceType: "module",
+ parser: "@/espree",
+ parserOptions: {}
+ }
+ },
+ {
+ files: ["**/*.cjs"],
+ languageOptions: {
+ sourceType: "commonjs"
}
}
];