Skip to content

Commit cccff3f

Browse files
committed
Fix Linting issues
1 parent 9bf1f1d commit cccff3f

File tree

8 files changed

+32
-7
lines changed

8 files changed

+32
-7
lines changed

packages/api/.eslintrc

+15-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,27 @@
44
"project": "tsconfig.json"
55
},
66
"rules": {
7-
"@typescript-eslint/no-unsafe-argument": 0
7+
"@typescript-eslint/no-unsafe-argument": 0,
8+
"@typescript-eslint/no-unsafe-member-access": 0,
9+
"@typescript-eslint/no-unnecessary-type-assertion": 0,
10+
"@typescript-eslint/no-unsafe-assignment": 0,
11+
"@typescript-eslint/no-unsafe-return": ["warn"],
12+
"@typescript-eslint/no-unsafe-call" : ["warn"],
13+
"@typescript-eslint/restrict-template-expressions": ["warn"],
14+
"@typescript-eslint/no-misused-promises": ["warn"],
15+
"@typescript-eslint/ban-ts-comment": ["warn"],
16+
"@typescript-eslint/no-unused-vars": 0
817
},
918
"overrides": [
1019
{
1120
"files": ["test/**/*.ts"],
1221
"rules": {
1322
"@typescript-eslint/no-unsafe-member-access": 0,
14-
"@typescript-eslint/no-unnecessary-type-assertion": 0
23+
"@typescript-eslint/no-unnecessary-type-assertion": 0,
24+
"@typescript-eslint/no-unsafe-assignment": 0,
25+
"@typescript-eslint/no-unsafe-return": ["warn"],
26+
"@typescript-eslint/no-unsafe-call" : ["warn"],
27+
"@typescript-eslint/no-unused-vars": 0
1528
}
1629
}
1730
]

packages/api/src/services/labels.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { deepDelete } from '../utils/helpers'
1616
import { findLibraryItemIdsByLabelId, ItemEvent } from './library_item'
1717

1818
const columnsToDelete = ['description', 'createdAt'] as const
19-
type ColumnsToDeleteType = typeof columnsToDelete[number]
19+
type ColumnsToDeleteType = (typeof columnsToDelete)[number]
2020
export type LabelEvent = Merge<
2121
Omit<DeepPartial<Label>, ColumnsToDeleteType>,
2222
EntityEvent

packages/api/src/services/library_item.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const columnsToDelete = [
5252
'readableContent',
5353
'feedContent',
5454
] as const
55-
type ColumnsToDeleteType = typeof columnsToDelete[number]
55+
type ColumnsToDeleteType = (typeof columnsToDelete)[number]
5656
type ItemBaseEvent = Merge<
5757
Omit<DeepPartial<LibraryItem>, ColumnsToDeleteType>,
5858
{

packages/api/src/utils/createTask.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/* eslint-disable @typescript-eslint/restrict-template-expressions */
33
// Imports the Google Cloud Tasks library.
44
import { CloudTasksClient, protos } from '@google-cloud/tasks'
5-
import { google } from '@google-cloud/tasks/build/protos/protos'
65
import axios from 'axios'
76
import { nanoid } from 'nanoid'
87
import { DeepPartial } from 'typeorm'
@@ -74,8 +73,9 @@ import { OmnivoreAuthorizationHeader } from './auth'
7473
import { CreateTaskError } from './errors'
7574
import { stringToHash } from './helpers'
7675
import { logError, logger } from './logger'
77-
import View = google.cloud.tasks.v2.Task.View
7876
import { EXPORT_QUEUE_NAME } from '../export-processor'
77+
import { google } from '@google-cloud/tasks/build/protos/protos/protos'
78+
import View = google.cloud.tasks.v2.Task.View
7979

8080
// Instantiates a client.
8181
const client = new CloudTasksClient()

packages/content-fetch/.eslintrc

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"rules": {
77
"@typescript-eslint/no-unsafe-assignment": 0,
88
"@typescript-eslint/no-unnecessary-type-assertion": 0,
9+
"@typescript-eslint/no-unsafe-member-access": ["warn"],
10+
"@typescript-eslint/no-unsafe-call": ["warn"],
11+
"@typescript-eslint/no-unsafe-argument": ["warn"],
912
"@typescript-eslint/no-floating-promises": [
1013
"error",
1114
{

packages/integration-handler/.eslintrc

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@
22
"extends": "../../.eslintrc",
33
"parserOptions": {
44
"project": "tsconfig.json"
5+
},
6+
"rules": {
7+
"@typescript-eslint/no-unsafe-assignment": ["warn"],
8+
"@typescript-eslint/no-unsafe-argument": ["warn"]
59
}
6-
}
10+
}

packages/puppeteer-parse/.eslintrc

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"project": "tsconfig.json"
55
},
66
"rules": {
7+
"@typescript-eslint/no-unsafe-call": ["warn"],
8+
"@typescript-eslint/no-unsafe-member-access": ["warn"],
9+
"@typescript-eslint/no-unsafe-argument": ["warn"],
710
"@typescript-eslint/no-floating-promises": [
811
"error",
912
{

self-hosting/docker-compose/self-build/docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ services:
167167
depends_on:
168168
redis:
169169
condition: service_healthy
170+
171+
170172
volumes:
171173
pgdata:
172174
redis_data:

0 commit comments

Comments
 (0)