You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
975 B
22 lines
975 B
3 years ago
|
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}`;
|