import defaults from "../../config-defaults.json";
import config from "../../config.json";

export default Object.assign({}, defaults, config);

import defaults from "../../config-defaults.json";
import config from "../../config.json";

export default { ...defaults, ...config };

Use object spread to merge configs