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

Commit ec475eb

Browse files
committed
Merge pull request #81 from farneman/update-to-eslint-2
Updates to ESLint 2.0.0
2 parents 65f54fe + ee4d349 commit ec475eb

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ rules:
3030
object-curly-spacing: [2, "never"]
3131
array-bracket-spacing: [2, "never"]
3232
space-unary-ops: [2, {"words": true, "nonwords": false}]
33-
space-after-keywords: [2, "always"]
33+
keyword-spacing: [2, {"after": true}]
3434
space-before-blocks: [2, "always"]
3535
space-before-function-paren: [2, "never"]
3636
space-in-parens: [2, "never"]

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ function lint(input, config, webpack) {
3030
res.warningCount === 1 &&
3131
res.results[0].messages[0] &&
3232
res.results[0].messages[0].message &&
33-
res.results[0].messages[0].message.indexOf(".eslintignore") > -1 &&
34-
res.results[0].messages[0].message.indexOf("--no-ignore") > -1
33+
res.results[0].messages[0].message.indexOf("ignore") > 1
3534
)) {
3635
// quiet filter done now
3736
// eslint allow rules to be specified in the input between comments

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
"index.js"
1717
],
1818
"peerDependencies": {
19-
"eslint": "^1.6.0"
19+
"eslint": ">=1.6.0 <3.0.0"
2020
},
2121
"dependencies": {
2222
"loader-utils": "^0.2.7",
2323
"object-assign": "^4.0.1"
2424
},
2525
"devDependencies": {
26-
"eslint": "^1.6.0",
26+
"eslint": "^2.0.0",
2727
"eslint-friendly-formatter": "^1.0.3",
2828
"npmpub": "^3.0.1",
2929
"tape": "^4.0.0",

0 commit comments

Comments
 (0)