Skip to content

Conversation

stefanv
Copy link
Collaborator

@stefanv stefanv commented Sep 23, 2025

This requires a new configuration file format. Plugins are no longer used, instead packages provide recommended configuration.

ESLint suggests using a separate formatter, and since we already use prettier, I've removed the (now unsupported) stylistic rules.

xref: #933 (comment)

If you are happy with this configuration, I can go ahead and fix the few outstanding issues found by eslint.

One note I didn't put in the commit message: the version of rimraf used is now deprecated, so I updated that dependency too (new, but not too new 😉).

Process notes

It would be easier to find the relevant category labels if they were prefixed by, e.g., type:.

I noticed that yarn was noticeably slower than pnpm to install dependencies; perhaps something to pay attention to long-term.

Checklist

  • PR has a descriptive title and content.
  • PR description contains references to any issues the PR resolves, e.g. Resolves #XXX.
  • PR has one of the labels: documentation, bug, enhancement, feature, maintenance
  • Checks are passing.
    Failing lint checks can be resolved with:
    • pre-commit run --all-files
    • jlpm run lint

📚 Documentation preview: https://jupytergis--938.org.readthedocs.build/en/938/
💡 JupyterLite preview: https://jupytergis--938.org.readthedocs.build/en/938/lite

This requires a new configuration file format. Plugins are no longer
used, instead packages provide recommended configuration.

ESLint suggests using a separate formatter, and since we already use
prettier, I've removed the (now unsupported) stylistic rules.
Copy link
Contributor

Binder 👈 Launch a Binder on branch stefanv/jupytergis/modernize-eslint

Copy link
Contributor

Integration tests report: appsharing.space

@mfisher87
Copy link
Member

It would be easier to find the relevant category labels if they were prefixed by, e.g., type:.

Can you elaborate a bit? Do you mean the required GitHub labels like enhancement, bug, etc.?

@mfisher87
Copy link
Member

I noticed that yarn was noticeably slower than pnpm to install dependencies; perhaps something to pay attention to long-term.

See: jupyterlab/jupyterlab#17913

I'd love to switch to pnpm :)

@mfisher87
Copy link
Member

I'm finding it difficult to adjust to the ESLint 9 config! I have a few concerns I wasn't able to resolve in my available time today, and I'd appreciate your thoughts:

  • Prettier doesn't support sorting imports out of the box. Before we merge this, I'd like to have an equivalent replacement for our ESLint config which handled import sorting! For simplicity, I'd prefer to keep the old rule and migrate this functionality to prettier in a separate PR
  • Do we have full coverage of the same rules we had previously?

export default defineConfig([
{
languageOptions: {
parserOptions: {
Copy link
Member

Choose a reason for hiding this comment

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

Should we be setting the parser?

Suggested change
parserOptions: {
parser: ...,
parserOptions: {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants