Open Bug 1881701 Opened 3 months ago Updated 1 month ago

Migrate ESLint configuration to flat config

Categories

(Developer Infrastructure :: Lint and Formatting, task, P3)

Tracking

(Not tracked)

People

(Reporter: standard8, Unassigned)

References

(Depends on 2 open bugs, Blocks 2 open bugs)

Details

In upgrading to ESLint v9, we think we can first migrate to the flat configuration in v8, before upgrading to v9 itself.

To do this we'll need to fix the issues this depends on and then investigate:

  • Importing the ESLint ignore file.
    • Secondary thought: could it be merged/shared with the prettier file?
  • Are there any more simple sub-level .eslintrc.js files that could be cleaned up and merged into the top-level config, or their parents?
  • Convert the top-level .eslintrc.js file to eslint.config.mjs
    • For the sub-level .eslintrc.js files, load those (via an explicit list), into the top-level configuration and add them to the list of configurations.
Blocks: 1881702
You need to log in before you can comment on or make changes to this bug.