Skip to content

Commit 3bb98d9

Browse files
authored
Ensure eslint is properly configured for all packages (#971)
1 parent 9d558a8 commit 3bb98d9

125 files changed

Lines changed: 1002 additions & 981 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
- uses: ./.github/actions/install-dependencies
2020
- run: pnpm clean
2121
- run: pnpm build
22+
- run: pnpm typecheck
23+
- run: pnpm lint
2224

2325
tests:
2426
name: Run all tests

lefthook.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ pre-commit:
33
prettier:
44
glob: '**/*.{js,jsx,ts,tsx,json,md,yml,yaml}'
55
run: pnpm prettier --write {staged_files} && git add {staged_files}
6+
lint:
7+
run: pnpm lint
8+
typecheck:
9+
run: pnpm typecheck
610
syncpack:
711
glob:
812
- "package.json"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "pnpm build:packages",
99
"dev": "turbo dev",
1010
"test": "turbo test --concurrency=1",
11-
"lint": "turbo lint",
11+
"lint": "turbo lint --continue",
1212
"format": "prettier --list-different --write \"**/*.{ts,tsx,md}\"",
1313
"typecheck": "turbo typecheck",
1414
"postinstall": "lefthook install",
File renamed without changes.

packages/services/api/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
"publishConfig": {
99
"access": "public"
1010
},
11+
"type": "module",
1112
"scripts": {
1213
"build": "tsc",
1314
"dev": "tsc --watch",
1415
"test": "echo",
15-
"typecheck": "tsc --noEmit"
16+
"typecheck": "tsc --noEmit",
17+
"lint": "eslint . --max-warnings 0"
1618
},
1719
"exports": {
1820
".": {
@@ -23,6 +25,7 @@
2325
"devDependencies": {
2426
"@repo/typescript-config": "workspace:^",
2527
"@types/node": "^25.3.0",
28+
"@repo/eslint-config": "workspace:^",
2629
"typescript": "^5.9.3"
2730
}
2831
}

packages/services/api/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export * from './api.gen'
1+
export * from './api.gen.js'
22

3-
import { API as ApiRpc } from './api.gen'
3+
import { API as ApiRpc } from './api.gen.js'
44

55
export class SequenceAPIClient extends ApiRpc {
66
constructor(
@@ -15,7 +15,7 @@ export class SequenceAPIClient extends ApiRpc {
1515
_fetch = (input: RequestInfo, init?: RequestInit): Promise<Response> => {
1616
// automatically include jwt and access key auth header to requests
1717
// if its been set on the api client
18-
const headers: { [key: string]: any } = {}
18+
const headers: Record<string, string> = {}
1919

2020
const jwtAuth = this.jwtAuth
2121
const projectAccessKey = this.projectAccessKey
File renamed without changes.

packages/services/builder/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
"publishConfig": {
99
"access": "public"
1010
},
11+
"type": "module",
1112
"scripts": {
1213
"build": "tsc",
1314
"dev": "tsc --watch",
1415
"test": "echo",
15-
"typecheck": "tsc --noEmit"
16+
"typecheck": "tsc --noEmit",
17+
"lint": "eslint . --max-warnings 0"
1618
},
1719
"exports": {
1820
".": {
@@ -21,6 +23,7 @@
2123
}
2224
},
2325
"devDependencies": {
26+
"@repo/eslint-config": "workspace:^",
2427
"@repo/typescript-config": "workspace:^",
2528
"@types/node": "^25.3.0",
2629
"typescript": "^5.9.3"

packages/services/builder/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export * from './builder.gen'
1+
export * from './builder.gen.js'
22

3-
import { Builder as BuilderRpc } from './builder.gen'
3+
import { Builder as BuilderRpc } from './builder.gen.js'
44

55
export class SequenceBuilderClient extends BuilderRpc {
66
constructor(
@@ -15,7 +15,7 @@ export class SequenceBuilderClient extends BuilderRpc {
1515
_fetch = (input: RequestInfo, init?: RequestInit): Promise<Response> => {
1616
// automatically include access key auth header to requests
1717
// if its been set on the api client
18-
const headers: { [key: string]: any } = {}
18+
const headers: Record<string, string> = {}
1919

2020
const projectAccessKey = this.projectAccessKey
2121
if (projectAccessKey && projectAccessKey.length > 0) {
File renamed without changes.

0 commit comments

Comments
 (0)