Closed ipatalas closed 7 years ago
x > 3 should become x <= 3 instead of !(x > 3)
x > 3
x <= 3
!(x > 3)
The same should apply to complex expressions like a > 1 || b < 100 Currently it will be changed to !(a > 1 || b < 100) which works well but would be more readable if it became a <= 1 && b >= 100
a > 1 || b < 100
!(a > 1 || b < 100)
a <= 1 && b >= 100
See /test/utils.test.ts#L29 for more examples
x > 3
should becomex <= 3
instead of!(x > 3)
The same should apply to complex expressions like
a > 1 || b < 100
Currently it will be changed to!(a > 1 || b < 100)
which works well but would be more readable if it becamea <= 1 && b >= 100