lint-staged
Advanced tools
Comparing version 12.2.0 to 12.2.1
@@ -59,6 +59,3 @@ /** @typedef {import('./index').Logger} Logger */ | ||
return loadConfig({ cwd: dir }, logger).then(({ config, filepath }) => { | ||
if (!config) { | ||
logger.error(`${ConfigNotFoundError.message}.`) | ||
throw ConfigNotFoundError | ||
} | ||
if (!config) return | ||
@@ -77,3 +74,9 @@ if (filepath in configGroups) { | ||
// Throw if no configurations were found | ||
if (Object.keys(configGroups).length === 0) { | ||
logger.error(`${ConfigNotFoundError.message}.`) | ||
throw ConfigNotFoundError | ||
} | ||
return configGroups | ||
} |
{ | ||
"name": "lint-staged", | ||
"version": "12.2.0", | ||
"version": "12.2.1", | ||
"description": "Lint files staged by git", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
93833
1617