@oxlint/migrate
Version:
Generates a `.oxlintrc.json` from a existing eslint flat config
13 lines (12 loc) • 336 B
JavaScript
const isEqualDeep = (a, b) => {
if (a === b) {
return true;
}
const bothAreObjects = a && b && typeof a === "object" && typeof b === "object";
return Boolean(
bothAreObjects && Object.keys(a).length === Object.keys(b).length && Object.entries(a).every(([k, v]) => isEqualDeep(v, b[k]))
);
};
export {
isEqualDeep
};