Skip to content

Commit 2d6dbd5

Browse files
darcyparkerbcherny
authored andcommitted
Minor ts lint fixes (#46)
* Clean dist_tests before building tests * fix tslint no-consecutive-blank-lines * fix tslint missing whitespace * Remove unnecessary semicolon
1 parent f6522a5 commit 2d6dbd5

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"build": "npm run build-sources && npm test && npm run lint",
99
"build-sources": "tsc -p ./tsconfig.json",
10-
"build-tests": "tsc -p ./tsconfig.test.json",
10+
"build-tests": "rm -rf ./dist_tests && tsc -p ./tsconfig.test.json",
1111
"watch": "tsc -p ./tsconfig.json --watch && tsc -p ./tsconfig.test.json --watch",
1212
"lint": "tslint -c tslint.json src/*.ts",
1313
"test": "npm run build-tests && ava",

test/cases/anyOf.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export var schema = {
3535
"additionalProperties": false
3636
}
3737

38-
3938
export var types = `export interface Foo {
4039
a: string;
4140
b?: number;

test/cases/enum.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ export var schema = {
3030
"namedIntegerEnum": {
3131
"type": "integer",
3232
"enum": [1, 2, 3],
33-
"tsEnumNames": ["One","Two","Three"]
33+
"tsEnumNames": ["One", "Two", "Three"]
3434
},
3535
"impliedNamedIntegerEnum": {
3636
"enum": [4, 5, 6],
37-
"tsEnumNames": ["Four","Five","Six"]
37+
"tsEnumNames": ["Four", "Five", "Six"]
3838
},
3939
"impliedHeterogeneousEnum": {
4040
"enum": [-20.1, null, "foo", false]

test/cases/json-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export var schema = {
147147
"exclusiveMinimum": [ "minimum" ]
148148
},
149149
"default": {}
150-
};
150+
}
151151

152152
export var configurations = [
153153
{

0 commit comments

Comments
 (0)