-
Notifications
You must be signed in to change notification settings - Fork 22
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
Config/preset changes for 5.0.0 #86
Comments
Here are the ones I think are worth adding (just from my perspective):
|
I'm very partial to: |
Thanks @ventuno! I should have added in my original post that I really want qunit/recommended to mainly contain rules that nearly everyone would agree are worth turning on. I'm worried that no-assert-equal and no-assert-ok could be contentious, and that we might have just as many people overriding them to be turned off in their configurations compared to the number of people who currently need to override them to be turned on today. If a large percentage of users have to add two extra lines to their configuration, that's not ideal. So, my preference is to add rules that help with clear errors or difficult-to-maintain code as much as possible, and allow users to add stylistic or preference-based rules to their own configuration files as needed. I might be open to creating a new configuration, for example "qunit/strict", which could contain recommended rules plus rules that forbid loose assertions or other preference-based rules. That would be a new feature rather than a breaking change, so it could be added in a minor release. If you like this idea, please feel free to open a new issue with a proposal of which rules make sense to add to a new "strict" exported configuration. With all of that said, if a number of users express clear support for adding those rules to qunit/recommended, then I would probably need to bow to the community's wishes. 😄 |
Thanks @platinumazure, I agree with you these would be rather contentious, and wasn't really expecting them to be picked up. I figured I'd at least put the option out there and see what people thought :-). |
I'm not sure I would include Certainly many will want to enable this rule, but I don't see it as being universal enough to include in recommended. |
Actually, on reading this, I agree. I think I was thinking of Thanks @edg2s for the feedback! |
Hi everyone! After a long time, I think I'm about ready to release eslint-plugin-qunit 5.0.0. The only thing left is the Based on everyone's feedback, this is what I would like to do:
Please speak up this week if you have any concerns with this plan or want me to consider other rules for |
These all LGTM to recommend by default. I agree that There's probably a few less contentious things we could include as a subset of that, such as I wouldn't mind adding both, but perhaps it'd be less controversial if they have an auto-fixer before we do, so perhaps not for now. |
@Krinkle I think the reason I had held off on adding That said, I could also see an argument that it's more stylistic than anything else, and should instead go in a strict preset. What would you think if we put it there for now, and maybe consider promoting to recommended later? To me, What do you think? |
When using Either way, I agree that it can be done later, e.g. based on adoption and feedback of the strict preset. |
I forget that the actual value is still displayed. In any case, we seem to agree |
Here are all of the non-recommended rules:
Which rules should be added to qunit/recommended?
The text was updated successfully, but these errors were encountered: