Skip to content
This repository was archived by the owner on Feb 7, 2021. It is now read-only.

Commit 746c26e

Browse files
authored
ci: add linting to husky (#44)
1 parent d2bfc9b commit 746c26e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lib/in-memory-db.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { InMemoryDBService } from './services';
88
exports: [InMemoryDBService],
99
})
1010
export class InMemoryDBModule {
11-
static forRoot(config: Partial<InMemoryDBConfig> = {}): DynamicModule {
11+
public static forRoot(config: Partial<InMemoryDBConfig> = {}): DynamicModule {
1212
return {
1313
module: InMemoryDBModule,
1414
providers: [

lib/interfaces/in-memory-db-config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
// tslint:disable-next-line: no-empty-interface
12
export interface InMemoryDBConfig {}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"lint-staged": {
4040
"*.ts": [
4141
"prettier --write",
42-
"git add -f"
42+
"git add -f",
43+
"npm run lint"
4344
]
4445
},
4546
"husky": {

0 commit comments

Comments
 (0)