Skip to content
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

[eslint-plugin] support Flat Config #29751

Merged
merged 18 commits into from
May 21, 2024
Merged

Conversation

jeremymeng
Copy link
Contributor

ESLint v9 drops support for legacy .eslintrc style configuration files. To move to v9 we need to migrate to the new Flat Config files. This PR adds support for Flat Config file and migrate cosmos and identity-broker packages to use the flat config. Legacy config files are still supported.

Some eslint plugins that we use don't support flat config yet so they are disabled.

Related issue: #29750

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@@ -24,20 +24,27 @@
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"main": "dist/index.js",
"main": "dist-esm/src/index.js",
"exports": {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should be using tshy here to ensure we have proper types for CJS and ESM. Otherwise these are only types for ESM and not CJS

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will fix this in a follow-up PR.

Copy link
Contributor

@mpodwysocki mpodwysocki left a comment

Choose a reason for hiding this comment

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

Looks good but needs fixup to be ESM/CJS via tshy

@jeremymeng jeremymeng enabled auto-merge (squash) May 21, 2024 18:08
@jeremymeng
Copy link
Contributor Author

/check-enforcer override

@jeremymeng jeremymeng merged commit 15096df into Azure:main May 21, 2024
30 checks passed
@jeremymeng jeremymeng deleted the eslint-flat-config branch May 21, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants