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
More eslint #1536
More eslint #1536
Conversation
That's great, I'm only not too sure about the If you run (without the tests)
with with So it turns out that there are more occurrences using space, of course without the tests, but they were largely refactored by one person at some point. So I'm for keeping the things as they are for now regarding this rule. |
Do you mean set it to always? Or leave the rule off? |
I was thinking about leaving it off, which is not perfect either, and it will be a matter of personal preference whichever we choose. |
I would say we should just pick something. This is a much less polarizing style issue than some of the other rules. |
I agree that we should pick one, but which one exactly? For example I'm using spaces always, so it would be perfectly fine for me to have all places changed to using spaces. Just by looking at the diff I can say that other developers have the same preference too. On the other hand saying that you should always use space might not be appealing to everyone, so that's why my suggestion was to leave that rule off for now. But lets try to make a quick pool. @mikeal @FredKSchott @nylen pick either 1) or 2) function()
function func(param) function ()
function func (param) |
Ok, so I'm sticking to my initial decision about this one to keep the So, @froatsnook can you revert only this froatsnook@22870c7 commit? |
Sure, will do. |
OK, reverted. |
Thanks 👍 |
I updated eslint to 0.18.0 and added a couple rules for style consistency.
There were only a few instances of
if()
andelse{
in the code, so this was clear.There were only a few instances of
if (){
in the code, so this was also clear.This one was harder. There were tons of
function ()
s andfunction name ()
s in the code, includingfunction Request ()
. But there were way morefunction()
s andfunction name()
s. Introducing with"always"
created 739 errors, vs"never"
creating 245.One additional change (1ffc50d): eslint complained about an empty block statement, so I added the comment
// empty
to explicitly mark it as empty.