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

Fix npm test error #32

Merged
merged 2 commits into from
Feb 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

13 changes: 6 additions & 7 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
---
# babel support more syntax stuff than eslint for now
parser: babel-eslint

root: true
extends: eslint:recommended

ecmaFeatures:
modules: true
parserOptions:
sourceType: "module"
ecmaVersion: 6
ecmaFeatures:
experimentalObjectRestSpread: true

env:
es6: true
browser: true
node: true

rules:
Expand All @@ -35,7 +34,7 @@ rules:
computed-property-spacing: [2, "never"]

space-unary-ops: [2, {"words": true, "nonwords": false}]
space-after-keywords: [2, "always"]
keyword-spacing: [2, {"before": true, "after": true}]
space-before-blocks: [2, "always"]
space-before-function-paren: [2, "never"]
space-in-parens: [2, "never"]
Expand Down
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sudo: false
language: node_js
node_js:
- iojs
- "0.12"
- "0.10"
- stable
- "6"
- "4"
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,19 @@
"README-zh.md"
],
"dependencies": {
"balanced-match": "^0.2.0",
"postcss": "^5.0.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

Old dependency?

"postcss-selector-matches": "^2.0.0"
},
"devDependencies": {
"babel": "^5.5.8",
"babel-eslint": "^3.1.15",
"babel-tape-runner": "^1.1.0",
"eslint": "^1.0.0",
"eslint": "^3.15.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

It's no longer necessary

"tape": "^4.0.0"
},
"scripts": {
"prepublish": "babel src --out-dir dist",
"lint": "eslint .",
"tape": "babel-tape-runner 'test/*.js'",
"lint": "eslint src test",
"tape": "babel-tape-runner test/*.js",
"test": "npm run lint && npm run tape"
}
}
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ function transform(input, opts = {}, postcssOpts = {}) {
test("@custom-selector", function(t) {
t.equal(
transform(
``
""
Copy link
Member Author

Choose a reason for hiding this comment

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

Fix lint error

).css,
``,
"",
"should works with nothing"
)

Expand Down