feat: use go tool

This commit is contained in:
2026-07-03 19:24:01 -04:00
parent 39548b4332
commit 4d0cab1fe0
1542 changed files with 252399 additions and 14 deletions
+27
View File
@@ -0,0 +1,27 @@
// @ts-check
/** @typedef {import("markdownlint-cli2").Options} Options */
/**
* Merges two options objects by combining config and replacing properties.
* @param {Options | null | undefined} first First options object.
* @param {Options | null | undefined} second Second options object.
* @returns {Options} Merged options object.
*/
const mergeOptions = (first, second) => {
const merged = {
...first,
...second
};
const firstConfig = first && first.config;
const secondConfig = second && second.config;
if (firstConfig || secondConfig) {
merged.config = {
...firstConfig,
...secondConfig
};
}
return merged;
};
export default mergeOptions;