Add ESLint flat config support to eslint-plugin-mozilla
Categories
(Developer Infrastructure :: Lint and Formatting, task, P3)
Tracking
(firefox133 fixed)
Tracking | Status | |
---|---|---|
firefox133 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files)
As part of migrating to ESLint v9, we'll need to update eslint-plugin-mozilla to support the new flat configuration.
There are instructions on how to do this here: https://eslint.org/docs/next/extend/plugin-migration-flat-config
Assignee | ||
Updated•11 months ago
|
Assignee | ||
Comment 1•3 months ago
|
||
This makes it easier for subscribers of eslint-plugin-mozilla to use it more generally as a set of recommended
rules. The only environment definitions are for mozilla-specific file types, where we should be safe to specify
them.
Updated•3 months ago
|
Assignee | ||
Comment 2•3 months ago
|
||
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.
Comment 4•3 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1489623017f8
https://hg.mozilla.org/mozilla-central/rev/f95d44008654
Description
•