Start here
The safe first move
When the repo exposes one static eslintConfig source in package.json, the bridge file can be generated cleanly.
Stop before automation when: Multiple ESLint config sources in one repo. Existing flat config files.
Target shape
module.exports = [
...compat.config({
extends: ["eslint:recommended"],
env: { node: true },
}),
];