Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrates to Eslint's flat config #6276

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented May 6, 2024

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

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@arcanis arcanis marked this pull request as draft May 6, 2024 12:52
@arcanis
Copy link
Member Author

arcanis commented May 6, 2024

Draft until #6219 is fixed.

Comment on lines +9 to +41
ignores: [
`.yarn`,

`packages/docusaurus/.docusaurus`,

`packages/yarnpkg-pnp/sources/hook.js`,
`packages/yarnpkg-pnp/sources/esm-loader/built-loader.js`,

`packages/yarnpkg-libzip/sources/libzipAsync.js`,
`packages/yarnpkg-libzip/sources/libzipSync.js`,

// The parsers are auto-generated
`packages/yarnpkg-parsers/sources/grammars/*.js`,

`packages/yarnpkg-core/sources/worker-zip/index.js`,
`packages/yarnpkg-cli/bundles/yarn.js`,

`packages/*/lib`,
`packages/*/bin`,
`packages/*/build`,
`packages/**/*fixtures*`,
`packages/yarnpkg-libzip/artifacts`,
`packages/plugin-compat/extra/fsevents/fsevents-*.js`,

// Files generated by Gatsby
`packages/gatsby/public`,
// Files generated by TypeDoc`,
`packages/gatsby/static/api`,

// Minimize the diff with upstream`,
`packages/yarnpkg-pnp/sources/node`,
`packages/yarnpkg-pnp/sources/loader/node-options*`
],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. The gatsby rules should be safe to remove
  2. Is yarnpkg-cli the only workspace to generate a bundle directory? Because other places just ignores packages/*/bundle
  3. Should the yarnpkg-libui artifacts also be here?
  4. Should the these be grouped by package?

@clemyan
Copy link
Member

clemyan commented May 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants