Skip to content

Commit c24f74c

Browse files
committed
Minor linting adjustments.
1 parent 43dad96 commit c24f74c

File tree

9 files changed

+20
-5
lines changed

9 files changed

+20
-5
lines changed

.eslintrc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@
88
"plugin:@typescript-eslint/recommended"
99
],
1010
"rules": {
11-
"semi": ["error", "never"]
11+
"semi": ["error", "never"],
12+
"@typescript-eslint/member-delimiter-style": [
13+
"error",
14+
{
15+
"multiline": {
16+
"delimiter": "none"
17+
},
18+
"singleline": {
19+
"delimiter": "comma"
20+
}
21+
}
22+
]
1223
}
1324
}

custom.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { Server } from 'http'
33
declare global {
44
namespace NodeJS {
55
interface Global {
6-
__appServer__: Server,
6+
// eslint-disable-next-line @typescript-eslint/member-delimiter-style
7+
__appServer__: Server
78
}
89
}
910
// namespace jest {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Backend TypeScript PERN Stack",
55
"scripts": {
66
"dev": "nodemon",
7-
"lint": "tslint --project .",
7+
"lint": "eslint . --ext .ts",
88
"migration:create": "NODE_ENV=local npm run typeorm -- migration:create -n",
99
"setup:local": "NODE_ENV=local npm run typeorm -- migration:run",
1010
"setup:test": "NODE_ENV=test npm run typeorm -- migration:run",

src/__tests__/packages/api/resources/users/controller.test.ts

Whitespace-only changes.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import server from './server'
66

77
const PORT = config.SERVER_PORT || '3000'
88

9-
async function onStart() {
9+
async function onStart(): Promise<any> {
1010
try {
1111
await getConnection()
1212
} catch (err) {

src/packages/database/migrations/1582755522303-SetDatabaseTimezoneToUTC.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export class SetDatabaseTimezoneToUTC1582755522303 implements MigrationInterface
55
await queryRunner.query(`set timezone = 'utc';`)
66
}
77

8+
// eslint-disable-next-line @typescript-eslint/no-empty-function
89
public async down(queryRunner: QueryRunner): Promise<any> {}
910
}

src/packages/database/migrations/1582815723334-InstallDatabaseAudit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ export class InstallDatabaseAudit1582815723334 implements MigrationInterface {
66
await queryRunner.query(auditSQL)
77
}
88

9+
// eslint-disable-next-line @typescript-eslint/no-empty-function
910
public async down(queryRunner: QueryRunner): Promise<any> {}
1011
}

src/packages/database/migrations/1582816030292-CreateDatabaseSchema.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ export class CreateDatabaseSchema1582816030292 implements MigrationInterface {
1616
`)
1717
}
1818

19-
public async down(queryRunner: QueryRunner): Promise<any> { }
19+
// eslint-disable-next-line @typescript-eslint/no-empty-function
20+
public async down(queryRunner: QueryRunner): Promise<any> {}
2021
}

0 commit comments

Comments
 (0)