Skip to content

Commit c5663fa

Browse files
committed
fix: remove more unnecessary code changes
1 parent b76b844 commit c5663fa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

@commitlint/resolve-extends/src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ export default function resolveExtends(
3636
return extended.reduce(
3737
(r, {extends: _, ...c}) =>
3838
mergeWith(r, c, (objValue, srcValue, key) => {
39-
if (key === 'rules') {
40-
if (typeof objValue !== 'object') {
41-
return srcValue;
42-
}
43-
} else if (key === 'plugins') {
39+
if (key === 'plugins') {
4440
if (Array.isArray(objValue)) {
4541
return srcValue.concat(objValue);
4642
}

0 commit comments

Comments
 (0)