-
Notifications
You must be signed in to change notification settings - Fork 510
"requireTrailingComma: true" + "disallowTrailingComma: true" + autofix toggles comma #1905
Comments
Can't repro, @hzoo could you confirm? |
Yeah I can't repro either actually. @jamietre Can you check again? And what version are you using? |
Interesting.. I even set up the simple scenario just as in this report to verify it. Fresh install from npm public registry yesterday. I am on windows in full disclosure. Will try it in ubuntu vm today and see if I can repro shortly. |
Here's the issue... apparently I didn't actually use that
or this (though this is obviously a silly config, but more clearly reveals the issue)
It seems like there's a conflct with the previous Not sure if this is a general problem or specific to this rule, but it seems like any |
I think we would want to keep rules mostly independent of each other. It's a general issue but the point is that normally you disable the rules in a preset so I would do Thanks for pointing it out though. |
If this could be added to the "disableTrailingComma" documentation that would be fantastic. I wasted an hour trying to figure out what was going on. |
@lf94 do you wanna do it? |
test.js:
.jscsrc
Then
(comma is removed)
(comma is added again)
The text was updated successfully, but these errors were encountered: