Skip to content

Commit

Permalink
Fix tslint.json SchemaStore#245
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrotoff committed Sep 7, 2017
1 parent bf58b3a commit 966b5d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/schemas/json/tslint.json
Expand Up @@ -135,7 +135,7 @@
},
"cyclomatic-complexity": {
"description": "Enforces a threshold of cyclomatic complexity",
"type": "array",
"type": [ "boolean", "array" ],
"items": {
"type": [ "boolean", "integer" ]
}
Expand Down Expand Up @@ -712,14 +712,14 @@
},
"one-variable-per-declaration": {
"description": "Disallows multiple variable definitions in the same declaration statement",
"type": "array",
"type": [ "boolean", "array" ],
"items": {
"enum": [ true, false, "ignore-for-loop" ]
}
},
"only-arrow-functions": {
"description": "Disallows traditional (non-arrow) function expressions",
"type": "array",
"type": [ "boolean", "array" ],
"items": {
"enum": [ true, false, "allow-declarations", "allow-named-functions" ]
}
Expand Down
8 changes: 7 additions & 1 deletion src/test/tslint/tslint-test10.json
Expand Up @@ -8,6 +8,12 @@
"member-ordering": false,
"align": false,
"array-type": false,
"completed-docs": false
"completed-docs": false,
"cyclomatic-complexity": true,
"no-consecutive-blank-lines": true,
"object-literal-key-quotes": [true, "consistent-as-needed"],
"one-variable-per-declaration": true,
"only-arrow-functions": true,
"typedef": [true, "arrow-call-signature"]
}
}

0 comments on commit 966b5d1

Please sign in to comment.