Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Updates to ESLint 2.0.0 #81

Merged
merged 1 commit into from Feb 17, 2016
Merged

Conversation

farneman
Copy link
Contributor

Updates ESLint dependencies to 2.0.0 and fixes some related test failures.

This fixes #79

@@ -16,14 +16,14 @@
"index.js"
],
"peerDependencies": {
"eslint": "^1.6.0"
"eslint": "^2.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there is no major change in the API, maybe we can scope 1.6 AND 2.0 ?

@farneman farneman force-pushed the update-to-eslint-2 branch 5 times, most recently from b13781e to f492690 Compare February 14, 2016 23:25
@farneman
Copy link
Contributor Author

I updated the version specification and took another look at the test. It turns out I misunderstood what was going on in the test. However, without change that test fails so I need to sort out why and fix it correctly.

@farneman
Copy link
Contributor Author

All tests are passing now. The skip ignored file warning conditional had to be updated due to a change at eslint/eslint@d43f26c#diff-3daec82d5218d64d8f2fed4d21f8e6ccR291.

@@ -30,7 +30,7 @@ function lint(input, config, webpack) {
res.warningCount === 1 &&
res.results[0].messages[0] &&
res.results[0].messages[0].message &&
res.results[0].messages[0].message.indexOf(".eslintignore") > -1 &&
res.results[0].messages[0].message.indexOf("ignore") > -1 &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you try "ignore", no need for "no-ignore"?

@farneman
Copy link
Contributor Author

I've reduced the to string checks to just one check for more than one occurrence of ignore.

@@ -16,14 +16,14 @@
"index.js"
],
"peerDependencies": {
"eslint": "^1.6.0"
"eslint": ">=1.6.0 <2.1.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If api respect semver, should be <3.0.0 ?

@farneman
Copy link
Contributor Author

I updated the ESLint dependency scope.

@omichelsen
Copy link

👍

@alyssaq
Copy link

alyssaq commented Feb 17, 2016

👍 Waiting on this patch to merge to upgrade!

MoOx added a commit that referenced this pull request Feb 17, 2016
@MoOx MoOx merged commit ec475eb into webpack-contrib:master Feb 17, 2016
@MoOx
Copy link
Contributor

MoOx commented Feb 17, 2016

Thanks!

@MoOx
Copy link
Contributor

MoOx commented Feb 17, 2016

Released as 1.3.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump peerDependencies to support ESLint 2.0.0
4 participants