yarnpkg / berry

📦🐈 Active development trunk for Yarn ⚒
https://yarnpkg.com
BSD 2-Clause "Simplified" License
7.37k stars 1.1k forks source link

Migrates to Eslint's flat config #6276

Closed arcanis closed 3 months ago

arcanis commented 4 months ago

What's the problem this PR addresses?

This lets us remove the Rushstack fix, and dogfood the VSCode SDK with the flat config (which is the only available config in Eslint 9). I would have migrated us to Eslint 9, but eslint-plugin-react isn't compatible yet.

How did you fix it?

Migrate to eslint.config.mjs.

Checklist

arcanis commented 4 months ago

Draft until #6219 is fixed.

clemyan commented 4 months ago

FYI, ESLint recently released the @eslint/compat package that patches v8 plugins for v9.

merceyz commented 3 months ago

@arcanis Should this have removed https://github.com/yarnpkg/berry/blob/d3695b1834f702675063c5d3ae45f0af6d8d3fa8/packages/acceptance-tests/.eslintrc.js as well?