diff --git a/src/common/get-file-info.js b/src/common/get-file-info.js index 409a1a857..d29b8ae51 100644 --- a/src/common/get-file-info.js +++ b/src/common/get-file-info.js @@ -45,7 +45,10 @@ async function getFileInfo(file, options) { async function getParser(file, options) { let config; if (options.resolveConfig !== false) { - config = await resolveConfig(file); + config = await resolveConfig(file, { + // No need read `.editorconfig` + editorconfig: false, + }); } return config?.parser ?? inferParser(options, { physicalFile: file });