-
-
Notifications
You must be signed in to change notification settings - Fork 988
WIP: changes to standardjs code style #324
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
Conversation
c4673bc
to
cbf7112
Compare
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 accept the other pull requests before merging this. I'll update it when we start to push towards v2. |
Done 😄 yes the |
test/session.js
Outdated
@@ -1,51 +1,53 @@ | |||
/* global describe, it, before */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 :)!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 👍 (three of the tests I had to add an |
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
Compare
I rebased and squashed them. (without the commit you cherry-picked 👍 ) I'll continue to rebase as the master updates 👍 . |
58a0612
to
26c4792
Compare
a4c00e6
to
d4313f7
Compare
@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
Compare
f647f77
to
c6af605
Compare
5c33972
to
73faa4e
Compare
9d2e29b
to
408229e
Compare
Closed due to multiple conflicts, and we haven't chosen which linter to use in the project yet. |
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 defined
session/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 spacing
session/index.js:447: Unexpected mix of '||' and '&&' no-mixed-operators
session/test/session.js:2350: Unnecessary escape character: \. no-useless-escape