-
-
Notifications
You must be signed in to change notification settings - Fork 15
feat: change ESQuery Selector placeholder text based on language #104
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: change ESQuery Selector placeholder text based on language #104
Conversation
✅ Deploy Preview for eslint-code-explorer ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Thanks for pointing this out. I've added a new commit cdccb99. |
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!
Would like to get one more review on this.
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.
This does, however, mean we have one more thing that needs to be updated whenever we add a new language. In a separate PR, could you please update https://github.com/eslint/code-explorer/blob/main/docs/adding-languages.md to ensure it's up-to-date with all of the required steps?
|
@nzakas Sure! I'll create a separate PR for this. |
Prerequisites checklist
What is the purpose of this pull request?
What changes did you make? (Give an overview)
Hello,
Currently, the ESQuery Selector's placeholder remains the same even when switching to a language other than JavaScript.
To improve this, I added support for updating the ESQuery Selector placeholder based on the selected language.
Now, the placeholders correctly reflect language-specific examples!
e.g. "ImportDeclaration > Literal"regardless of the languageRelated Issues
Is there anything you'd like reviewers to focus on?