Mark Banner cee5571f91 Bug 1881696 - Make the eslint-plugin-mozilla recommended configuration work with the ESLint flat config. r=frontend-codestyle-reviewers,mossop
This provides additional "flat/...." configurations which work with the flat config of ESLint. The changes in recommended.js make it easier to handle the two different types of configuration. The changes in index.js are to ensure that the resultant configurations are correct for legacy or flat configs. The index.js changes also inject the plugin object back into itself, as required by ESLint.

Once we have switched mozilla-central to flat configuration, we can drop support for the legacy config.

Differential Revision: https://phabricator.services.mozilla.com/D225705
2024-10-18 09:21:27 +00:00
..