-
Notifications
You must be signed in to change notification settings - Fork 2.9k
chore: migrate to eslint flat configs #35590
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: master
Are you sure you want to change the base?
chore: migrate to eslint flat configs #35590
Conversation
📊 Bundle size report✅ No changes found |
|
Pull request demo site: URL |
| @@ -0,0 +1,7 @@ | |||
| { | |||
| "type": "none", | |||
| "comment": "chore: update verify-packaging script to exclude root eslintrc file", | |||
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 shouldn't exists, we need to update beachball ignore definition to:
"**/.eslintrc.*",
+"**/eslint.config.*",https://github.com/microsoft/fluentui/blob/master/scripts/beachball/base.config.json#L9
| "{workspaceRoot}/.eslintrc.json", | ||
| "{workspaceRoot}/.eslintignore", | ||
| "{workspaceRoot}/eslint.config.js", | ||
| "{workspaceRoot}/eslint.config.cjs", |
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.
we can merge these two into {workspaceRoot}/eslint.config.[mc]js" or covering all 3 extensions {workspaceRoot}/jest.config.{cjs,mjs,js}
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.
you are removing the root eslint config file. we wanted to follow standard nx practices like we have in contrib for eg - having repo root eslint which is being spread per project flat configs (https://github.com/microsoft/fluentui-contrib/blob/main/eslint.config.js) with the exception of v8 packages that will be kept as is because I don't think we can make the separation of rules applied work simply by file matching globs.
Removes the rest of legacy eslint configs, updates configuration files, scripts, ensures tooling and ownership files reflect the new structure.
Related Issue(s)