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
Standard JS integration #307
Conversation
@tusharmath this pull request doesn't pass our Travis tests because there are hundreds of StandardJS failures. |
@markstos That's the intent. You know when to merge, when all the issues are fixed. |
Total Errors: |
Total Errors: |
@markstos Take a look at the errors. Apart from style errors, it has also highlighted errors such as — using undeclared variables , using == instead of ===. This could lead to potential issues in production. |
@markstos There is one particular failure — /node-config/lib/config.js
247:40 error 'fnName' is not defined I am not sure how to fix it. May be you can help me here? |
That's a straight-up bug. Instead of
It should be
It looks like that code was copied from a more generic place into the watch function, without making it specific to watch(). |
This PR has too many changes. Is there a way to change a configuration such that the errors are significantly reduced to match the coding style of the package, and the only errors are real improvements like |
@lorenwest No we can't configure it. Check the FAQ. If the changes are too big to review, I would recommend you go commit by commit. That way u will be able to review all the changes. |
@lorenwest Some weird issue on node |
Looks like the issue was with PS: Build is fixed! |
This was a large amount of work and as much as I dislike the size of the PR, the point is to endure some pain in order to achieve consistency. My concern is that manual changes are intermixed with automated changes, making it impractical to detect the changes due to reformatting vs. the changes due to manual code. Normally that'd be mitigated by tests, but the tests were changed along with the code. My suggestion to getting this merged is to split the work into multiple pull requests:
I sincerely appreciate the work you've put into this and the consistency it brings to the library. If you can break it into these multiple pull requests, I will take the time necessary to get them committed and pushed to NPM once they're all in. -Loren |
Closing this in favour of #310 |
Fixes : #305