mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 10:30:04 +01:00
22 lines
975 B
Diff
22 lines
975 B
Diff
|
diff --git a/node_modules/@eslint/eslintrc/lib/config-array-factory.js b/node_modules/@eslint/eslintrc/lib/config-array-factory.js
|
||
|
index c7ff6a0..6a88c6d 100644
|
||
|
--- a/node_modules/@eslint/eslintrc/lib/config-array-factory.js
|
||
|
+++ b/node_modules/@eslint/eslintrc/lib/config-array-factory.js
|
||
|
@@ -41,7 +41,6 @@
|
||
|
|
||
|
const fs = require("fs");
|
||
|
const path = require("path");
|
||
|
-const importFresh = require("import-fresh");
|
||
|
const stripComments = require("strip-json-comments");
|
||
|
const ConfigValidator = require("./shared/config-validator");
|
||
|
const naming = require("./shared/naming");
|
||
|
@@ -222,7 +221,7 @@ function loadLegacyConfigFile(filePath) {
|
||
|
function loadJSConfigFile(filePath) {
|
||
|
debug(`Loading JS config file: ${filePath}`);
|
||
|
try {
|
||
|
- return importFresh(filePath);
|
||
|
+ return require(filePath);
|
||
|
} catch (e) {
|
||
|
debug(`Error reading JavaScript file: ${filePath}`);
|
||
|
e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`;
|