Closed vweevers closed 7 years ago
@vweevers Wow, you're on a roll today! :)
Wow, you're on a roll today! :)
At home with the flu, nothing else to do ;)
This is a big change so wouldn't mind another review.
This is a big change so wouldn't mind another review.
did you run a command to achieve this?
did you run a command to achieve this?
standard --fix
, but this only took care of ~10%. Did the rest manually.
What would you think about also running prettier-standard '**/*.js'
before standard --fix
, if this is generated 100% through tools it should be safer to merge without the laborious review.
and in case this doesn't get us to 100% yet, maybe split the commits between tool output and manual fixes.
My git skills are gonna fail me so I'll do this in a new branch.
ok^^
the steps would have been something like this:
$ git checkout standard
$ git reset --hard master
$ # do all the things and commit
$ git push --force
Yeah, but I'd maybe like to compare the end results of the two branches.
good point!
Hmm, prettier-standard
sadly doesn't fix one-var. Also it's a little bit too aggressive in splitting long lines.
var keys = [], i, key
for (i = 0; i < NUM_KEYS; i++) {
keys.push(Math.random().toString(36).slice(2))
}
becomes
var keys = [],
i,
key
for (i = 0; i < NUM_KEYS; i++) {
keys.push(
Math.random()
.toString(36)
.slice(2)
)
}
Also neither standard --fix
or prettier-standard
properly deal with ifs:
- if (typeof this._start === 'undefined')
- this._tree = tree.end
- else if (ltgt.upperBoundInclusive(options))
- this._tree = tree.le(this._start)
- else
- this._tree = tree.lt(this._start)
+ if (typeof this._start === 'undefined') this._tree = tree.end
+ else if (ltgt.upperBoundInclusive(options)) { this._tree = tree.le(this._start) } else this._tree = tree.lt(this._start)
wow, that output is terrible!
Closes #87.