WIP: changes to standardjs code style #324
Conversation
c4673bc
to
cbf7112
|
We probably want to merge as many PRs before doing this to this module, otherwise it is going to make it almost impossible to accept any of the current PRs (especially since this module was not using a format even close to standard before). Perhaps part of the 1 -> 2 version of this module? Thoughts? As for some of the errors, they should be OK if you want to use the template I linked to in the standard issue (the changes do not really load on my phone well, so not sure). |
|
Oh that's true we should accepted the pull requests before merging this. I'll update it when we start to push towards v2. |
|
Done |
| @@ -1,51 +1,53 @@ | |||
| /* global describe, it, before */ | |||
dougwilson
Jun 20, 2016
Member
Rather than this, why not use the proposed pattern at expressjs/discussions#18 (comment) ? If you don't like the proposed pattern, please speak up in that discussion thread :)!
gabeio
Jun 20, 2016
•
Author
Member
oh that's fine I just was trying to figure out how to get rid of the standard error (I hadn't realized that explained/showed how to fix that issue!).
|
@dougwilson should I make the changes, just like you made in that commit to this repository also; the package.json & .travis.yml edits that force it to run checks using the eslint? |
|
Yep :) |
|
done |
|
Nice! Doing a rebase should now resolve the second item on the list. |
|
And now item 1 should be resolved as well. |
|
I also just cherry-picked out your commit gabeio@a893cb3 since that is useful outside of just converting to Standard format. |
62b854c
to
2301ff1
|
I rebased and squashed them. (without the commit you cherry-picked I'll continue to rebase as the master updates |
58a0612
to
26c4792
|
feel free to add the [needs rebase] tag back to this pr as needed. |
a4c00e6
to
d4313f7
|
@dougwilson there are some new errors/suggestions in the standardjs lint:
|
|
I think I have a stash somewhere with the Buffer change, but not the others. |
|
The |
|
If the |
adffa6a
to
526fb2b
f647f77
to
c6af605
5c33972
to
73faa4e

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

There are still a few(actually a lot of the same) errors on the standard that I'm not understanding how to fix (90% are the test/session.js).
here's just a few:
session/index.js:87:7: 'options' is already definedsession/index.js:162:59: Unexpected use of comma operator.session/session/store.js:30:1: The '__proto__' property is deprecated.session/test/session.js:17:1: 'describe' is not defined.session/test/session.js:18:3: 'it' is not defined.session/test/session.js:27:20: Expected consistent spacingsession/index.js:447: Unexpected mix of '||' and '&&' no-mixed-operatorssession/test/session.js:2350: Unnecessary escape character: \. no-useless-escape