-
-
Notifications
You must be signed in to change notification settings - Fork 34
Migrate eslint to v9 and use @jupyter/eslint-plugin
#141
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?
Changes from all commits
bcb18e1
7221661
5a63b9f
8129444
46eb435
38a95f9
a080042
4ab388a
3bfdd89
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,3 +4,4 @@ node_modules | |
| **/package.json | ||
| !/package.json | ||
| {{python_name}} | ||
| eslint.config.mjs | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,67 @@ | ||||||||||||||||||
| import js from '@eslint/js'; | ||||||||||||||||||
| import { defineConfig } from 'eslint/config'; | ||||||||||||||||||
|
Comment on lines
+1
to
+2
|
||||||||||||||||||
| import tseslint from 'typescript-eslint'; | ||||||||||||||||||
| import prettierRecommended from 'eslint-plugin-prettier/recommended'; | ||||||||||||||||||
| import globals from 'globals'; | ||||||||||||||||||
| import jupyterPlugin from '@jupyter/eslint-plugin'; | ||||||||||||||||||
|
|
||||||||||||||||||
| export default defineConfig([ | ||||||||||||||||||
| { | ||||||||||||||||||
| ignores: [ | ||||||||||||||||||
| 'node_modules', | ||||||||||||||||||
| 'dist', | ||||||||||||||||||
| 'coverage', | ||||||||||||||||||
| '**/*.js', | ||||||||||||||||||
| '**/*.d.ts'{% if test %}, | ||||||||||||||||||
| 'tests', | ||||||||||||||||||
| '**/__tests__', | ||||||||||||||||||
| 'ui-tests'{% endif %} | ||||||||||||||||||
| ] | ||||||||||||||||||
| }, | ||||||||||||||||||
| js.configs.recommended, | ||||||||||||||||||
| tseslint.configs.recommended, | ||||||||||||||||||
| jupyterPlugin.configs.recommended, | ||||||||||||||||||
|
Comment on lines
+22
to
+23
|
||||||||||||||||||
| tseslint.configs.recommended, | |
| jupyterPlugin.configs.recommended, | |
| ...(Array.isArray(tseslint.configs.recommended) | |
| ? tseslint.configs.recommended | |
| : [tseslint.configs.recommended]), | |
| ...(Array.isArray(jupyterPlugin.configs.recommended) | |
| ? jupyterPlugin.configs.recommended | |
| : [jupyterPlugin.configs.recommended]), |
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.
This
.prettierignoreentry is currently a no-op: theprettier:basescript only targets.ts/.tsx/.js/.jsx/.css/.json/.md, soeslint.config.mjswon’t be formatted anyway. Either remove this ignore line or update the Prettier glob to include.mjsif you want the config file formatted/checked.