knip 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,6 +7,6 @@ export const isEnabled = ({ dependencies }) => hasDependency(dependencies, ENABL
|
|
|
7
7
|
export const CONFIG_FILE_PATTERNS = ['commitlint.config.{js,ts}'];
|
|
8
8
|
const findCommitLintDependencies = async (configFilePath) => {
|
|
9
9
|
const config = await _load(configFilePath);
|
|
10
|
-
return config.extends;
|
|
10
|
+
return config?.extends ? [config.extends].flat() : [];
|
|
11
11
|
};
|
|
12
12
|
export const findDependencies = timerify(findCommitLintDependencies);
|
package/package.json
CHANGED