Skip to content

Commit 70adb94

Browse files
committed
Fix npm test error
1 parent 53bf235 commit 70adb94

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.gitignore
1+
.gitignore
2+
dist

.eslintrc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
---
2-
# babel support more syntax stuff than eslint for now
3-
parser: babel-eslint
42

53
root: true
64
extends: eslint:recommended
75

8-
ecmaFeatures:
9-
modules: true
6+
parserOptions:
7+
sourceType: "module"
8+
ecmaVersion: 6
9+
ecmaFeatures:
10+
experimentalObjectRestSpread: true
1011

1112
env:
12-
es6: true
13-
browser: true
1413
node: true
1514

1615
rules:
@@ -35,7 +34,7 @@ rules:
3534
computed-property-spacing: [2, "never"]
3635

3736
space-unary-ops: [2, {"words": true, "nonwords": false}]
38-
space-after-keywords: [2, "always"]
37+
keyword-spacing: [2, {"before": true, "after": true}]
3938
space-before-blocks: [2, "always"]
4039
space-before-function-paren: [2, "never"]
4140
space-in-parens: [2, "never"]

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,19 @@
2424
"README-zh.md"
2525
],
2626
"dependencies": {
27-
"balanced-match": "^0.2.0",
2827
"postcss": "^5.0.0",
2928
"postcss-selector-matches": "^2.0.0"
3029
},
3130
"devDependencies": {
3231
"babel": "^5.5.8",
33-
"babel-eslint": "^3.1.15",
3432
"babel-tape-runner": "^1.1.0",
35-
"eslint": "^1.0.0",
33+
"eslint": "^3.15.0",
3634
"tape": "^4.0.0"
3735
},
3836
"scripts": {
3937
"prepublish": "babel src --out-dir dist",
4038
"lint": "eslint .",
41-
"tape": "babel-tape-runner 'test/*.js'",
39+
"tape": "babel-tape-runner test/*.js",
4240
"test": "npm run lint && npm run tape"
4341
}
4442
}

test/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ function transform(input, opts = {}, postcssOpts = {}) {
1111
test("@custom-selector", function(t) {
1212
t.equal(
1313
transform(
14-
``
14+
""
1515
).css,
16-
``,
16+
"",
1717
"should works with nothing"
1818
)
1919

0 commit comments

Comments
 (0)