Skip to content
This repository was archived by the owner on Jun 6, 2022. It is now read-only.

Commit c260886

Browse files
committed
Update dependencies
1 parent c154f29 commit c260886

File tree

7 files changed

+31
-27
lines changed

7 files changed

+31
-27
lines changed

.babelrc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
{
2-
"stage": 0
2+
"presets": [
3+
["env", {
4+
"targets": {
5+
"node": 4
6+
}
7+
}]
8+
]
39
}

.eslintignore

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

.eslintrc renamed to .eslintrc.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
---
2-
# babel support more syntax stuff than eslint for now
3-
parser: babel-eslint
4-
51
root: true
62
extends: eslint:recommended
73

8-
ecmaFeatures:
9-
modules: true
10-
11-
env:
12-
es6: true
13-
browser: true
14-
node: true
4+
parserOptions:
5+
ecmaVersion: 6
6+
sourceType: "module"
157

168
rules:
179
indent: [2, 2] # 2 spaces indentation
@@ -35,7 +27,7 @@ rules:
3527
computed-property-spacing: [2, "never"]
3628

3729
space-unary-ops: [2, {"words": true, "nonwords": false}]
38-
space-after-keywords: [2, "always"]
30+
keyword-spacing: [2, {"before": true, "after": true}]
3931
space-before-blocks: [2, "always"]
4032
space-before-function-paren: [2, "never"]
4133
space-in-parens: [2, "never"]

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
node_modules
12
dist

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
sudo: false
22
language: node_js
3+
node_js:
4+
- "6"
5+
- "4"
6+
- "stable"

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,21 @@
2020
"dist"
2121
],
2222
"dependencies": {
23-
"balanced-match": "^0.2.0",
24-
"postcss": "^5.0.0"
23+
"balanced-match": "^0.4.2",
24+
"postcss": "^6.0.1"
2525
},
2626
"devDependencies": {
27-
"babel": "^5.1.13",
28-
"babel-eslint": "^3.1.15",
29-
"babel-tape-runner": "^1.1.0",
30-
"eslint": "^1.0.0",
31-
"tape": "^4.0.0"
27+
"babel-cli": "^6.24.1",
28+
"babel-preset-env": "^1.4.0",
29+
"babel-register": "^6.24.1",
30+
"eslint": "^3.19.0",
31+
"tape": "^4.6.3"
3232
},
3333
"scripts": {
34-
"lint": "eslint .",
35-
"tape": "babel-tape-runner 'test/*.js'",
36-
"test": "npm run lint && npm run tape",
37-
"prepublish": "babel src --out-dir dist"
34+
"lint": "eslint *.js ./src/ ./test/",
35+
"tape": "tape -r babel-register test/*.js",
36+
"test": "npm run lint && npm run babelify && npm run tape",
37+
"babelify": "babel src --out-dir dist",
38+
"prepublish": "npm run babelify"
3839
}
3940
}

test/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ tape("postcss-selector-not", t => {
7272
)
7373

7474
t.equal(
75-
transform(`.foo:not(:hover, :focus)::before {}`),
76-
`.foo:not(:hover):not(:focus)::before {}`,
75+
transform(".foo:not(:hover, :focus)::before {}"),
76+
".foo:not(:hover):not(:focus)::before {}",
7777
"should work with something after :not()"
7878
)
7979

0 commit comments

Comments
 (0)