oxc-project / backlog

backlog for collborators only
1 stars 0 forks source link

ESLint v9 Flat Configs #87

Open DonIsaac opened 1 month ago

DonIsaac commented 1 month ago

The community is asking for flat config support, so we need to add it. https://github.com/oxc-project/oxc/discussions/4720.

It looks like the most asked for approach is a migration step. Before we do this, there are several other config features we need to add.

I'd love to hear any feedback, comments, questions, or concerns.

Prerequisites

Boshen commented 1 month ago

Can we somehow hijack eslint and get the list of rules and configurations for us 🤔

I had this idea a long time ago: https://github.com/eslint/eslint/discussions/16557#discussioncomment-5448823

I want ESLint to give me a list of file paths and rule configurations, oxc will parse and lint the files in parallel and hand back all the necessary details for disable comments, code fixes and diagnostics reporting.

So eslint is kind of the "frontend" for configurations, and we (oxlint) take care of the rest.

(although we won't hand back data to eslint)