Suggestion: [playground] Provide an option to reset to the default configuration
What problem do you want to solve?
Currently, in the playground, if we modify some configurations and later wish to revert to the default settings, it can be challenging for the user to remember the newly added configurations and remove them correctly to return to the default Config.
For instance, if a user enables all the rules to check for all errors and then wants to revert to the default configuration, it will be very difficult for them.
What do you think is the correct solution?
We provide a 'Reset to Defaults' button in the UI, which restores the configuration to its default (initial) Configs.
Refs:
Participation
- [X] I am willing to submit a pull request for this change.
Additional comments
We provide a 'Reset to Default' button in the UI similar to the below image. Open for any other suggestions also.
This seems helpful, I'm fine with this change. I'd like to know what other team members think.
// @eslint/eslint-team
Personally, I support this proposal :+1: I've often been the guy who was looking for that button, only to realize it wasn't there every time again. Even so, I'm aware of recommendations not to use reset buttons in forms for various reasons like this one, or this one from MDN (in the note), so I'd be interested in other opinions.
👍 from me on the proposal in general, and also 👍 on @fasttime's comment that this should not fall into the common reset button accessibility traps. At the very least the solution should have an 'undo' option per https://www.w3.org/WAI/WCAG2/supplemental/patterns/o4p05-form-undo.
👍 from me on the proposal in general, and also 👍 on @fasttime's comment that this should not fall into the common reset button accessibility traps. At the very least the solution should have an 'undo' option per https://www.w3.org/WAI/WCAG2/supplemental/patterns/o4p05-form-undo.
Naming the button as "Revert to Default," "Clear Custom Configs," or "Restore to Recommended Configs" would be suitable? Users might misunderstand "Undo" as reverting the last action performed.
This reset will reset the entire playground right (all sections such as versions/rules/file-format)?
Maybe we should name it as Reset playground configs