-
Notifications
You must be signed in to change notification settings - Fork 29
Conversation
i actually tried bumping the version in the travis.yml, however, the build then fails. needs some further sleuthing! otherwise, +1 |
i don't think that has to happen in this PR. I'll file an issue to help us update the build process |
@cdaringe ok, sounds good. Looks like there was an error with the build, which is the difference between old and new versions. Just tested locally and if I use |
👍 |
@cdaringe ok, I'm testing to see if all Node versions pass in travis now. Essentially I added all LTS releases: When Doing that made the tests fail, as you mentioned earlier. It seems to be a problem with this bug: tav/nodelint#40 nodelint seems pretty stale. Hasn't been updated substantially in like 4 years. What do you think about moving to something like https://www.npmjs.com/package/jslint ? Or anything else? I think there would be some pretty substantial updates to the codebase in terms of coding style that would need to happen in order to make this happen, so wanted to get your feedback before I just started updating the entire codebase. |
@cdaringe ok, sorry I kept tacking on to this pr. Essentially does the following:
|
Thanks for fixing tests! I agree that getting off nodelint seems good, but...jslint? Isn't jshint the better/more mature linter here? I would vote to use that (and a .jshintrc file) instead of jslint. |
@@ -68,7 +68,7 @@ var command, | |||
out = function (file, str) { | |||
console.log(str); | |||
}, | |||
efn = function () {}, | |||
efn = function () { return; }, |
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.
Is this to satisfy the linter? IMO this doesn't add clarity, it just seems crufty.
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.
yes, every instance in which I'm returning inside an empty function is to satisfy the linter.
Other than my complaints about the linting product being chosen here and the |
jshint, from my experience, doesn't offer very great auto-correction tools. i'm ok with any improvement by this point, however! my bias is first https://github.com/feross/standard, then eslint, and finally jshint. the prior two offer a |
@@ -1,4 +1,7 @@ | |||
language: node_js | |||
script: "make lint && make test reporter=spec && make test-browser reporter=spec && make coverage cov-reporter=travis-cov" | |||
node_js: | |||
- "stable" | |||
- "4.2" |
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.
👍 💯
BTW, i think tracking with LTS is the ideal plan! |
Moving to standard would be a big update but I am super down to do it. I've been using it for pretty much every project lately 👍 |
Personally I am not a huge fan of feross/standard's stylistic choices (re: semicolons, I think I like almost every other opinion it has), but I can appreciate the aims of the project. Lines like
I agree strongly on this point, and I don't necessarily think the linter choice should hold up merging this PR. |
@Lochlan agree. I think jslint will do for now, as the project was already using jslint so it really only updated the cli aspect. Let's just open an issue about choosing a new linter and we can get this pr out the door so that people using Node versions 4+ can install the project. |
we ready to merge? 💪 +1 from me! over in ampersand, we do two +1s on a PR to get it in (from someone who didnt do the PR), and none for documentation changes. OK with that? |
It seems like we've reached consensus so I'm proceeding with the merge. I am totally on board with the "two +1s" rule. The no +1s on documentation seems ok as well, I have never tried that approach but I am open to it. |
Ran in to several problems getting the tests to run properly, which I think were related to me using a newer version of Node (
v5.4.1
).I've fixed those errors, and I think we should consider newer versions to the
travis.yml
to ensure that it passes in every Node environment./cc @cdaringe @Lochlan