Start here
The safe first move
Each override becomes a separate config object in the array with its own files pattern.
Stop before automation when: Complex nested overrides with multiple extends. Overrides that depend on JS logic.
Target shape
module.exports = [
{ rules: { "no-console": "warn" } },
{
files: ["**/*.test.js"],
rules: { "no-console": "off" },
},
];