Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Commit 5ace9d4

Browse files
committed
lint fixes + intro of merge to master config
1 parent 4c51f2a commit 5ace9d4

4 files changed

Lines changed: 13 additions & 7 deletions

File tree

.m2m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"before": [
3+
"npm run lint",
4+
"npm test",
5+
"npx nsp check"
6+
]
7+
}

src/core/@routable/routable.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@ describe('core/@Routable', () => {
448448
})
449449
class RoutableExposeApiTest {
450450
}
451-
}).toThrowError('@Routable \'RoutableExposeApiTest\' cannot have both \'suppressApi\' and \'exposeApi\' set at the same time');
452-
451+
}).toThrowError(`@Routable \'RoutableExposeApiTest\' cannot have both \'suppressApi\' ` +
452+
`and \'exposeApi\' set at the same time`);
453453
});
454454

455455
describe('GET ./model', () => {
@@ -1218,8 +1218,6 @@ describe('core/@Routable', () => {
12181218
});
12191219

12201220
const routableExposeApiInvalidTest = new RoutableExposeApiInvalidTest();
1221-
console.log(routableExposeApiInvalidTest);
1222-
12231221
expect(routableExposeApiInvalidTest[routableSymbols.routes].length).toBe(0);
12241222
});
12251223
});
@@ -1262,7 +1260,6 @@ describe('core/@Routable', () => {
12621260
expect(routableSuppressApiPostTest[routableSymbols.routes][i].httpMethod).not.toBe('post');
12631261
}
12641262
});
1265-
12661263
});
12671264
});
12681265
});

tslint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"interface-name": false,
2828
"prefer-object-spread": false,
2929
"variable-name": false,
30-
"no-object-literal-type-assertion": false
30+
"no-object-literal-type-assertion": false,
31+
"prefer-for-of": false
3132
},
3233
"jsRules": {
3334
"curly": true

tslint.spec.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
}
2929
],
3030
"no-object-literal-type-assertion": false,
31-
"prefer-object-spread": false
31+
"prefer-object-spread": false,
32+
"prefer-for-of": false
3233
},
3334
"jsRules": {
3435
"curly": true

0 commit comments

Comments
 (0)