Merge pull request #1704 from gyandeeps/lint

Chore: Fix lint issues and add indent with tabs
This commit is contained in:
Pierre-Yves Gérardy 2017-03-12 10:45:35 +01:00 committed by GitHub
commit de94503dbf
9 changed files with 99 additions and 88 deletions

View file

@ -60,7 +60,14 @@ module.exports = {
"id-blacklist": "error", "id-blacklist": "error",
"id-length": "off", "id-length": "off",
"id-match": "error", "id-match": "error",
"indent": "off", "indent": [
"warn",
"tab",
{
"outerIIFEBody": 0,
"SwitchCase": 1
}
],
"init-declarations": "off", "init-declarations": "off",
"jsx-quotes": "error", "jsx-quotes": "error",
"key-spacing": "off", "key-spacing": "off",
@ -217,5 +224,6 @@ module.exports = {
"wrap-regex": "error", "wrap-regex": "error",
"yield-star-spacing": "error", "yield-star-spacing": "error",
"yoda": "off" "yoda": "off"
} },
"root": true
}; };

View file

@ -528,6 +528,7 @@ o.spec("route", function() {
}) })
o(root.firstChild.nodeName).equals("DIV") o(root.firstChild.nodeName).equals("DIV")
o(renderCount).equals(1)
}) })
o("RouteResolver `render` does not have component semantics", function(done) { o("RouteResolver `render` does not have component semantics", function(done) {

View file

@ -14,6 +14,7 @@
"lintdocs": "node docs/lint", "lintdocs": "node docs/lint",
"gendocs": "node docs/generate", "gendocs": "node docs/generate",
"lint": "eslint .", "lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "node ospec/bin/ospec", "test": "node ospec/bin/ospec",
"posttest": "npm run lint || true", "posttest": "npm run lint || true",
"cover": "istanbul cover --print both ospec/bin/ospec", "cover": "istanbul cover --print both ospec/bin/ospec",

View file

@ -162,6 +162,7 @@ o.spec("stream", function() {
}) })
o(b()).equals(undefined) o(b()).equals(undefined)
o(count).equals(0)
}) })
o("combine will throw with a helpful error if given non-stream values", function () { o("combine will throw with a helpful error if given non-stream values", function () {
var spy = o.spy() var spy = o.spy()