-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
feat: expose shouldUseFlatConfig
#17169
Conversation
|
✅ Deploy Preview for docs-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
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.
Nice work. Just left a suggestion that we may want to change the function signature before exposing this publicly.
shouldUseFlatConfig
(#17129)shouldUseFlatConfig
(#17129)
c7f2be2
to
3f28705
Compare
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.
LGTM. Just one suggestion to clean up the comments.
Would like @mdjermanovic to review before merging.
shouldUseFlatConfig
(#17129)shouldUseFlatConfig
a7b5302
to
33ad6bb
Compare
thanks for the review @mdjermanovic , I've addressed all your comments -- let me know if there's anything else I can clean up! |
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.
LGTM, thanks for contributing!
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[x] Add something to the core
[ ] Other, please explain:
What changes did you make? (Give an overview)
shouldUseFlatConfig
fromlib/cli.js
tolib/eslint/flat-eslint.js
and exposed it via exportsfindFlatConfigFile
from exports inlib/eslint/flat-eslint.js
since it was only used to buildshouldUseFlatConfig
inlib/cli.js
shouldUseFlatConfig
vialib/unsupported-apis.js
shouldUseFlatConfig
Is there anything you'd like reviewers to focus on?
Nothing in particular beyond the typical code review