Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUse ESLint with a config base of eslint-airbnb-config-base #1023
Conversation
|
So I think it'll be a good idea to start
The biggest problem I see here is that any outstanding js changes that will go in immediately after this are going to be a merge conflict nightmare. We'll have to work this in quickly after we agree on something to minimize immediate conflicts. Thoughts? |
ESLint reads returns outside of a function block as a parser error, killing the linter on that file. While returning the promise that's running is more explicit, it isn't necessary to hold Node open while it finishes running, as Node doesn't finish a task until all of its callbacks have completed.
`0XXXX` for octal is no longer valid and kills ESLint. Switching to `0oXXXX`fixes this
This is so they can be more easily separated from babeled code in the test/ dir
lib/ -> js/lib/ test/ -> js/test/ Of note is that test/keys/ is staying put as there is nothing to be babeled in there.
|
Why |
| @@ -245,12 +245,12 @@ describe("Diff", function() { | |||
|
|
|||
| it("can diff the contents of a file to a string with unicode characters", | |||
| function(done) { | |||
| this.timeout(0); | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Oh, ok I'm following you guys now. That ( |
|
@tbranyen what do you think? |
|
Changing the folder structure will be a rebase nightmare as previously outlined. I don't see a huge rush to bring this in immediately, but I'll try and review this weekend! Thanks for humoring me with this exercise, I know it's not the fastest thing to land, because it affects a lot. |
|
This is definitely not time critical :) |
|
Awesome! Yeah, the rebase nightmare for any pending PRs is definitely the biggest concern here. Thanks for checking it out! |
|
Well, this is conflicting with like 100 files so @cbargren are you able to rebase this and clean it up? |
|
At this point, the actual file changes probably need to be reworked. FYI passing |
|
I'll have to take a look at it again when I have some time. Yeah, a lot of these changes will probably have to be completely reworked, but it's really only worth doing if we're committed to getting it in immediately when it's ready, since the longer it waits, the more rebase nightmares it's going to create. |
gucong3000
commented
Jul 27, 2017
|
Should we just lint files that changed? |
gucong3000
commented
Jul 27, 2017
•
|
https://www.npmjs.com/package/polyjuice
polyjuice --eslint .eslintrc --to-jshint > .jshintrc |

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.

cbargren commentedMay 3, 2016
This replaces JSHint with the newer, more powerful ESLint. Some discussion has been had about this already at #1016 (comment).