Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

>= and <= not supported in requireSpaceAfterBinaryOperators #378

Closed
Krinkle opened this issue May 15, 2014 · 1 comment
Closed

>= and <= not supported in requireSpaceAfterBinaryOperators #378

Krinkle opened this issue May 15, 2014 · 1 comment
Labels

Comments

@Krinkle
Copy link
Contributor

Krinkle commented May 15, 2014

See also #366.

>, >=, <, and <= don't seem to work as expected when put in requireSpaceBeforeBinaryOperators and requireSpaceAfterBinaryOperators.

All four work in requireSpaceBeforeBinaryOperators, but in requireSpaceAfterBinaryOperators, values >= and <= seem to be ignored.

Config:

"requireSpaceBeforeBinaryOperators": [
        ">",
        ">=",
        "<",
        "<="
],
"requireSpaceAfterBinaryOperators": [
        ">",
        ">=",
        "<",
        "<="
],

Code:

var x = 5;
x = {
    a: x>10, // Operator > should not stick to preceding expression
    b: x >10, // Operator > should not stick to following expression
    c: x>= 10, // Operator >= should not stick to preceding expression
    d: x >=10, // wat
    e: x< 10, // Operator < should not stick to preceding expression
    f: x <10, // Operator < should not stick to following expression
    h: x<= 10, // Operator <= should not stick to preceding expression
    i: x <=10 // wat
};
@markelog
Copy link
Member

markelog commented Jun 1, 2014

Expect this in new version of jscs

@markelog markelog closed this as completed Jun 1, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants