Skip to content

Commit

Permalink
chore: Fix return type of findFlatConfigFile (#17161)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed May 8, 2023
1 parent b68346b commit b1516db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/eslint/flat-eslint.js
Expand Up @@ -261,7 +261,7 @@ function compareResultsByFilePath(a, b) {
* Searches from the current working directory up until finding the
* given flat config filename.
* @param {string} cwd The current working directory to search from.
* @returns {Promise<string|null>} The filename if found or `null` if not.
* @returns {Promise<string|undefined>} The filename if found or `undefined` if not.
*/
function findFlatConfigFile(cwd) {
return findUp(
Expand Down Expand Up @@ -326,7 +326,7 @@ async function loadFlatConfigFile(filePath) {
* as override config file is not explicitly set to `false`, it will search
* upwards from the cwd for a file named `eslint.config.js`.
* @param {import("./eslint").ESLintOptions} options The ESLint instance options.
* @returns {{configFilePath:string,basePath:string,error:Error|null}} Location information for
* @returns {{configFilePath:string|undefined,basePath:string,error:Error|null}} Location information for
* the config file.
*/
async function locateConfigFileToUse({ configFile, cwd }) {
Expand Down

0 comments on commit b1516db

Please sign in to comment.