-
Notifications
You must be signed in to change notification settings - Fork 59
Upgrade to eslint 9 #938
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
base: main
Are you sure you want to change the base?
Upgrade to eslint 9 #938
Conversation
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.
Integration tests report: appsharing.space |
Can you elaborate a bit? Do you mean the required GitHub labels like |
See: jupyterlab/jupyterlab#17913 I'd love to switch to pnpm :) |
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:
|
export default defineConfig([ | ||
{ | ||
languageOptions: { | ||
parserOptions: { |
There was a problem hiding this comment.
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?
parserOptions: { | |
parser: ..., | |
parserOptions: { |
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 thanpnpm
to install dependencies; perhaps something to pay attention to long-term.Checklist
Resolves #XXX
.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