-
Notifications
You must be signed in to change notification settings - Fork 36
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
chore: migrate to eslint v9 and flat config #287
base: main
Are you sure you want to change the base?
Conversation
eaf2201
to
ee8aff2
Compare
@@ -1 +0,0 @@ | |||
node_modules |
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.
eslintignore is not supported anymore, we should use ignores
in eslint.config.(js|cjs|mjs). Or there is an option to use includeIgnoreFIle
from compat.
@@ -26,7 +26,6 @@ const OverflowMenuItemWrapper = React.forwardRef< | |||
}> | |||
>(({ keytipProps, overflowSequence, id, children, ...props }, ref) => { | |||
const isVisible = useIsOverflowItemVisible(id); | |||
false; |
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.
weird stuff that somehow passed through all checks
ee8aff2
to
f5b4296
Compare
@@ -74,16 +77,14 @@ | |||
"@types/react-dom": "18.3.0", | |||
"@types/react-virtualized-auto-sizer": "^1.0.1", | |||
"@types/react-window": "^1.8.5", | |||
"@typescript-eslint/eslint-plugin": "7.18.0", |
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 is a typo ? these plugins are actually crutial for us
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.
it was automatically removed during running nx generator for moving to flat config. The reason is that new typescript-eslint already includes those packages.
If you're migrating from a "legacy" .eslintrc configuration setup you likely have our plugin and parser installed separately. This package includes these as dependencies so you can freely uninstall your local references
6871719
to
57e48b7
Compare
1eb662b
to
3153f81
Compare
@@ -56,19 +49,4 @@ describe('playwright-component-configuration generator', () => { | |||
} | |||
`); | |||
}); | |||
|
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.
removed this as with flat config it's easier to have it in the root config
3153f81
to
ab155b8
Compare
Migrating to eslint v9 and flat config file. There are a lot of breaking changes related to that, within this PR the most noticeable are:
.eslintrc.json
files. Allowed onlyeslint.config.{js,ts,mjs,cjs}
extends
.eslintignores
not allowed anymore,ignores
orincludeIgnoreFile
from compatenv
key is removed, we need to use globalsparser
andparserOptions
keys were moved tolanguageOptions
FlatCompat