Update eslint config to flat config
In Update eslint config to compatibility mode conf... (#9381 - closed) we migrated the ESLint config to a compatibility mode config to support ESLint 9. This is a typemaintenance issue to migrate from compatibility mode config to a true flat config.
See #9381 (closed) for more details.