-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Refactoring/Linting #19
Conversation
Pull Request Test Coverage Report for Build 55
💛 - Coveralls |
2 similar comments
Pull Request Test Coverage Report for Build 55
💛 - Coveralls |
Pull Request Test Coverage Report for Build 55
💛 - Coveralls |
Pull Request Test Coverage Report for Build 78
💛 - Coveralls |
By the way, my own ESLint config (at https://github.com/brettz9/eslint-config-ash-nazg ) incorporates even more useful linting than airbnb if you were open to trying it (it expands on "eslint:recommended" and "standard" and several other plugins/configs), though for stylistic rules, the current style could be enforced. |
03dadd1
to
01948cb
Compare
Definitely happy using more ES6 features. |
Ok, I've pushed an additional commit which adds ash-nazg eslint config in place of airbnb. In order to demonstrate which airbnb rules we needed to add back (without overriding what I think are some useful stricter ash-nazg rules which airbnb disables), I am not currently extending from airbnb but have manually added its different (mostly) stylistic rules which the current code was expecting. If you find this acceptable, I can remove the airbnb dev dependency. If you prefer not to spell out the rules added back from airbnb manually and keep it as a dev dep and extend its config as well as ash nazg's, I can do that instead. |
dc637c5
to
455c7c9
Compare
As far as the failing travis build, this is due to the linting step which fails for pre-8.3 Node (due to a dev dependency on eslint-plugin-node using object rest). Wondering if we could at least skip the linting for this version, if support is still needed? I'm not clear on why the coverage is failing, as I haven't really added code or removed testing. |
bc076db
to
8dbc1b0
Compare
I've dropped support for node 6 in the master branch since it's EOL and pushed to this branch, travis is now happy. Leave this with me and I'll review the changes, if @adamhathcock or any other @passport-next/developers want to review it then please go ahead the more the merrier. @brettz9 thanks for the contribution! Much appreciated :) |
Great, thanks @rwky ... I'm working on a PR now for a Promise-based API (currently |
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.
Looks mostly fine to me. Can't tell if it will break things but a major version bump seems sensible.
4e85091
to
0a31e89
Compare
In general, I'm scared of moving too far from upstream code. I guess the question is how much do we want to risk not getting upstream changes/fixes? I prefer Promises, obviously :) |
Isn't that the point of this repo though, that the original author wasn't responding? Since there haven't been any changes of note since then, I could submit these changes as a PR... I'd think ES features would be welcomed... |
I'm not against it. I'm just making sure the decision is a measured one. |
I'm up for promises, this repo is so far from the upstream repo that any fixes that do land upstream that I haven't already merged in would need to be manually applied assuming they're relevant to us. If possible I'd rather have changes me semver minor instead of semver major i.e. new stuff doesn't break existing features. Promises are discussed here #7 (comment) |
Let's start breaking things. |
I've checked the changes and I like them! I do want to make a few changes myself I'll sort it all out this week and merge this. |
Just letting everyone know I've not forgotten about this just taking longer for me to do what I want than expected. |
No worries... Also, my apologies for not yet getting to the Promise PR which I still hope and plan to complete... |
variables in more nested scope - Linting: Remove jshint - Linting: Apply overrides to add mocha-specific config - Linting: Add recommended fields to `package.json` - Linting: Remove unused disable directives - Git/npm/Linting: ignore `var` - Fix: Point to correct path in Makefile `view-cov`
`authenticate.js` middleware when switching to strict mode with errors upon setting a property on a boolean ) - npm: No need for full path within package.json scripts
- remark lint default preferred styling
…e require-jsdoc for tests; use new preference for "object" over "Object" - npm: Update devDeps
I've gotten out the Promises changes in #21, though I'll probably want to try them out a bit in my own code to get a better feel for how it works in the real world. However, I'm wondering if you have an ETA on your changes desired for this Refactoring PR? |
I've just got back off holiday so have the usual billion emails everyone gets when they get back ;) though this should be doable this week, I've got the code ready locally just need to tweak/test some things. |
forEach
; declarevariables in more nested scope
package.json
var
Is this a security patch?
No.
Checklist
make view-cov
does not work, however, as I get the message, "The file /Users/brett/passport/reports/coverage/lcov-report/index.html does not exist."$ make test
) executes successfully.$ npm run-script lint
) executes successfully.