Skip to content

Commit 244cc9c

Browse files
Merge pull request #980 from devoxa/renovate/devoxa-eslint-config-4.x
chore(deps): update dependency @devoxa/eslint-config from 4.0.0 to 4.0.1
2 parents c917513 + 17de844 commit 244cc9c

File tree

6 files changed

+46
-91
lines changed

6 files changed

+46
-91
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@prisma/client": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0"
2525
},
2626
"devDependencies": {
27-
"@devoxa/eslint-config": "4.0.0",
27+
"@devoxa/eslint-config": "4.0.1",
2828
"@devoxa/prettier-config": "2.0.3",
2929
"@prisma/client": "6.0.1",
3030
"@swc/core": "1.10.0",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function findManyCursorConnection<
1515
Node = Record,
1616
CustomEdge extends Edge<Node> = Edge<Node>,
1717
>(
18-
findMany: (args: PrismaFindManyArguments<Cursor>) => Promise<Record[]>,
18+
findMany: (args: PrismaFindManyArguments<Cursor>) => Promise<Array<Record>>,
1919
aggregate: () => Promise<number>,
2020
args: ConnectionArguments = {},
2121
pOptions?: Options<Record, Cursor, Node, CustomEdge>

src/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface ConnectionArguments {
2828

2929
// Relay Response
3030
export interface Connection<T, CustomEdge extends Edge<T> = Edge<T>> {
31-
nodes: T[]
31+
nodes: Array<T>
3232
edges: Array<CustomEdge>
3333
pageInfo: PageInfo
3434
totalCount: number

tests/fixtures.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Prisma } from '@prisma/client'
22

3-
export const TODO_FIXTURES: Prisma.TodoCreateInput[] = [
3+
export const TODO_FIXTURES: Array<Prisma.TodoCreateInput> = [
44
{ id: 'id_01', text: 'veritatis molestias qui', isCompleted: false },
55
{ id: 'id_02', text: 'occaecati a dolor', isCompleted: false },
66
{ id: 'id_03', text: 'ut enim quia', isCompleted: false },
@@ -23,7 +23,7 @@ export const TODO_FIXTURES: Prisma.TodoCreateInput[] = [
2323
{ id: 'id_20', text: 'dolorum deserunt quis', isCompleted: true },
2424
]
2525

26-
export const USER_FIXTURES: Prisma.UserCreateInput[] = [
26+
export const USER_FIXTURES: Array<Prisma.UserCreateInput> = [
2727
{ id: 1, email: '[email protected]' },
2828
{ id: 2, email: '[email protected]' },
2929
{ id: 3, email: '[email protected]' },
@@ -46,7 +46,7 @@ export const USER_FIXTURES: Prisma.UserCreateInput[] = [
4646
{ id: 20, email: '[email protected]' },
4747
]
4848

49-
export const PROFILE_FIXTURES: Prisma.ProfileCreateInput[] = [
49+
export const PROFILE_FIXTURES: Array<Prisma.ProfileCreateInput> = [
5050
{ firstname: 'foo1', lastname: 'bar1' },
5151
{ firstname: 'foo2', lastname: 'bar1' },
5252
{ firstname: 'foo3', lastname: 'bar1' },

tests/index.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ export const typecheckForInferredTypes = async (): Promise<void> => {
573573
() => client.todo.count(),
574574
{}
575575
)) satisfies {
576-
edges: { cursor: string; node: { id: string; text: string; isCompleted: boolean } }[]
576+
edges: Array<{ cursor: string; node: { id: string; text: string; isCompleted: boolean } }>
577577
}
578578

579579
// Handles edge type additions
@@ -585,11 +585,11 @@ export const typecheckForInferredTypes = async (): Promise<void> => {
585585
recordToEdge: (record) => ({ node: record, extraEdgeField: 'Bar' }),
586586
}
587587
)) satisfies {
588-
edges: {
588+
edges: Array<{
589589
cursor: string
590590
node: { id: string; text: string; isCompleted: boolean }
591591
extraEdgeField: string
592-
}[]
592+
}>
593593
}
594594

595595
// Handles edge type additions
@@ -603,9 +603,9 @@ export const typecheckForInferredTypes = async (): Promise<void> => {
603603
}),
604604
}
605605
)) satisfies {
606-
edges: {
606+
edges: Array<{
607607
cursor: string
608608
node: { id: string; text: string; isCompleted: boolean; extraNodeField: string }
609-
}[]
609+
}>
610610
}
611611
}

yarn.lock

Lines changed: 35 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -515,17 +515,17 @@
515515
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
516516
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
517517

518-
"@devoxa/[email protected].0":
519-
version "4.0.0"
520-
resolved "https://registry.yarnpkg.com/@devoxa/eslint-config/-/eslint-config-4.0.0.tgz#3d154c4fad97b18aaf6ee7061522af12c683847b"
521-
integrity sha512-yFIXwNro9bTfxQMOw+Lw7+eHgN2os67VbL22dcRqGvUMNdY3RFMapPt0n+e/nAOs2R78Gcp/5NgRYBseiPg87w==
518+
"@devoxa/[email protected].1":
519+
version "4.0.1"
520+
resolved "https://registry.yarnpkg.com/@devoxa/eslint-config/-/eslint-config-4.0.1.tgz#fa9ec359cdb453ca03414b4d6b9341073feafbcf"
521+
integrity sha512-6DdyiAreX4K1o4XtkooGUuQwN11muaN3Hx5O5tvKpOMPV5uMSHqvz5nqvPDWuGQEdtXjLtB9g1ReKNiPV0GemA==
522522
dependencies:
523523
"@eslint/js" "9.16.0"
524524
"@stylistic/eslint-plugin" "2.11.0"
525525
eslint-config-prettier "9.1.0"
526526
eslint-plugin-react "7.37.2"
527527
parse-gitignore "2.0.0"
528-
typescript-eslint "8.16.0"
528+
typescript-eslint "8.17.0"
529529

530530
531531
version "2.0.3"
@@ -1227,40 +1227,32 @@
12271227
dependencies:
12281228
"@types/yargs-parser" "*"
12291229

1230-
"@typescript-eslint/eslint-plugin@8.16.0":
1231-
version "8.16.0"
1232-
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.16.0.tgz#ac56825bcdf3b392fc76a94b1315d4a162f201a6"
1233-
integrity sha512-5YTHKV8MYlyMI6BaEG7crQ9BhSc8RxzshOReKwZwRWN0+XvvTOm+L/UYLCYxFpfwYuAAqhxiq4yae0CMFwbL7Q==
1230+
"@typescript-eslint/eslint-plugin@8.17.0":
1231+
version "8.17.0"
1232+
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.17.0.tgz#2ee073c421f4e81e02d10e731241664b6253b23c"
1233+
integrity sha512-HU1KAdW3Tt8zQkdvNoIijfWDMvdSweFYm4hWh+KwhPstv+sCmWb89hCIP8msFm9N1R/ooh9honpSuvqKWlYy3w==
12341234
dependencies:
12351235
"@eslint-community/regexpp" "^4.10.0"
1236-
"@typescript-eslint/scope-manager" "8.16.0"
1237-
"@typescript-eslint/type-utils" "8.16.0"
1238-
"@typescript-eslint/utils" "8.16.0"
1239-
"@typescript-eslint/visitor-keys" "8.16.0"
1236+
"@typescript-eslint/scope-manager" "8.17.0"
1237+
"@typescript-eslint/type-utils" "8.17.0"
1238+
"@typescript-eslint/utils" "8.17.0"
1239+
"@typescript-eslint/visitor-keys" "8.17.0"
12401240
graphemer "^1.4.0"
12411241
ignore "^5.3.1"
12421242
natural-compare "^1.4.0"
12431243
ts-api-utils "^1.3.0"
12441244

1245-
"@typescript-eslint/parser@8.16.0":
1246-
version "8.16.0"
1247-
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.16.0.tgz#ee5b2d6241c1ab3e2e53f03fd5a32d8e266d8e06"
1248-
integrity sha512-D7DbgGFtsqIPIFMPJwCad9Gfi/hC0PWErRRHFnaCWoEDYi5tQUDiJCTmGUbBiLzjqAck4KcXt9Ayj0CNlIrF+w==
1245+
"@typescript-eslint/parser@8.17.0":
1246+
version "8.17.0"
1247+
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.17.0.tgz#2ee972bb12fa69ac625b85813dc8d9a5a053ff52"
1248+
integrity sha512-Drp39TXuUlD49F7ilHHCG7TTg8IkA+hxCuULdmzWYICxGXvDXmDmWEjJYZQYgf6l/TFfYNE167m7isnc3xlIEg==
12491249
dependencies:
1250-
"@typescript-eslint/scope-manager" "8.16.0"
1251-
"@typescript-eslint/types" "8.16.0"
1252-
"@typescript-eslint/typescript-estree" "8.16.0"
1253-
"@typescript-eslint/visitor-keys" "8.16.0"
1250+
"@typescript-eslint/scope-manager" "8.17.0"
1251+
"@typescript-eslint/types" "8.17.0"
1252+
"@typescript-eslint/typescript-estree" "8.17.0"
1253+
"@typescript-eslint/visitor-keys" "8.17.0"
12541254
debug "^4.3.4"
12551255

1256-
"@typescript-eslint/[email protected]":
1257-
version "8.16.0"
1258-
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.16.0.tgz#ebc9a3b399a69a6052f3d88174456dd399ef5905"
1259-
integrity sha512-mwsZWubQvBki2t5565uxF0EYvG+FwdFb8bMtDuGQLdCCnGPrDEDvm1gtfynuKlnpzeBRqdFCkMf9jg1fnAK8sg==
1260-
dependencies:
1261-
"@typescript-eslint/types" "8.16.0"
1262-
"@typescript-eslint/visitor-keys" "8.16.0"
1263-
12641256
"@typescript-eslint/[email protected]":
12651257
version "8.17.0"
12661258
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.17.0.tgz#a3f49bf3d4d27ff8d6b2ea099ba465ef4dbcaa3a"
@@ -1269,40 +1261,21 @@
12691261
"@typescript-eslint/types" "8.17.0"
12701262
"@typescript-eslint/visitor-keys" "8.17.0"
12711263

1272-
"@typescript-eslint/type-utils@8.16.0":
1273-
version "8.16.0"
1274-
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.16.0.tgz#585388735f7ac390f07c885845c3d185d1b64740"
1275-
integrity sha512-IqZHGG+g1XCWX9NyqnI/0CX5LL8/18awQqmkZSl2ynn8F76j579dByc0jhfVSnSnhf7zv76mKBQv9HQFKvDCgg==
1264+
"@typescript-eslint/type-utils@8.17.0":
1265+
version "8.17.0"
1266+
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.17.0.tgz#d326569f498cdd0edf58d5bb6030b4ad914e63d3"
1267+
integrity sha512-q38llWJYPd63rRnJ6wY/ZQqIzPrBCkPdpIsaCfkR3Q4t3p6sb422zougfad4TFW9+ElIFLVDzWGiGAfbb/v2qw==
12761268
dependencies:
1277-
"@typescript-eslint/typescript-estree" "8.16.0"
1278-
"@typescript-eslint/utils" "8.16.0"
1269+
"@typescript-eslint/typescript-estree" "8.17.0"
1270+
"@typescript-eslint/utils" "8.17.0"
12791271
debug "^4.3.4"
12801272
ts-api-utils "^1.3.0"
12811273

1282-
"@typescript-eslint/[email protected]":
1283-
version "8.16.0"
1284-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.16.0.tgz#49c92ae1b57942458ab83d9ec7ccab3005e64737"
1285-
integrity sha512-NzrHj6thBAOSE4d9bsuRNMvk+BvaQvmY4dDglgkgGC0EW/tB3Kelnp3tAKH87GEwzoxgeQn9fNGRyFJM/xd+GQ==
1286-
12871274
"@typescript-eslint/[email protected]":
12881275
version "8.17.0"
12891276
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.17.0.tgz#ef84c709ef8324e766878834970bea9a7e3b72cf"
12901277
integrity sha512-gY2TVzeve3z6crqh2Ic7Cr+CAv6pfb0Egee7J5UAVWCpVvDI/F71wNfolIim4FE6hT15EbpZFVUj9j5i38jYXA==
12911278

1292-
"@typescript-eslint/[email protected]":
1293-
version "8.16.0"
1294-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.16.0.tgz#9d741e56e5b13469b5190e763432ce5551a9300c"
1295-
integrity sha512-E2+9IzzXMc1iaBy9zmo+UYvluE3TW7bCGWSF41hVWUE01o8nzr1rvOQYSxelxr6StUvRcTMe633eY8mXASMaNw==
1296-
dependencies:
1297-
"@typescript-eslint/types" "8.16.0"
1298-
"@typescript-eslint/visitor-keys" "8.16.0"
1299-
debug "^4.3.4"
1300-
fast-glob "^3.3.2"
1301-
is-glob "^4.0.3"
1302-
minimatch "^9.0.4"
1303-
semver "^7.6.0"
1304-
ts-api-utils "^1.3.0"
1305-
13061279
"@typescript-eslint/[email protected]":
13071280
version "8.17.0"
13081281
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.17.0.tgz#40b5903bc929b1e8dd9c77db3cb52cfb199a2a34"
@@ -1317,17 +1290,7 @@
13171290
semver "^7.6.0"
13181291
ts-api-utils "^1.3.0"
13191292

1320-
"@typescript-eslint/[email protected]":
1321-
version "8.16.0"
1322-
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.16.0.tgz#c71264c437157feaa97842809836254a6fc833c3"
1323-
integrity sha512-C1zRy/mOL8Pj157GiX4kaw7iyRLKfJXBR3L82hk5kS/GyHcOFmy4YUq/zfZti72I9wnuQtA/+xzft4wCC8PJdA==
1324-
dependencies:
1325-
"@eslint-community/eslint-utils" "^4.4.0"
1326-
"@typescript-eslint/scope-manager" "8.16.0"
1327-
"@typescript-eslint/types" "8.16.0"
1328-
"@typescript-eslint/typescript-estree" "8.16.0"
1329-
1330-
"@typescript-eslint/utils@^8.13.0":
1293+
"@typescript-eslint/[email protected]", "@typescript-eslint/utils@^8.13.0":
13311294
version "8.17.0"
13321295
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.17.0.tgz#41c05105a2b6ab7592f513d2eeb2c2c0236d8908"
13331296
integrity sha512-bQC8BnEkxqG8HBGKwG9wXlZqg37RKSMY7v/X8VEWD8JG2JuTHuNK0VFvMPMUKQcbk6B+tf05k+4AShAEtCtJ/w==
@@ -1337,14 +1300,6 @@
13371300
"@typescript-eslint/types" "8.17.0"
13381301
"@typescript-eslint/typescript-estree" "8.17.0"
13391302

1340-
"@typescript-eslint/[email protected]":
1341-
version "8.16.0"
1342-
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.16.0.tgz#d5086afc060b01ff7a4ecab8d49d13d5a7b07705"
1343-
integrity sha512-pq19gbaMOmFE3CbL0ZB8J8BFCo2ckfHBfaIsaOZgBIF4EoISJIdLX5xRhd0FGB0LlHReNRuzoJoMGpTjq8F2CQ==
1344-
dependencies:
1345-
"@typescript-eslint/types" "8.16.0"
1346-
eslint-visitor-keys "^4.2.0"
1347-
13481303
"@typescript-eslint/[email protected]":
13491304
version "8.17.0"
13501305
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.17.0.tgz#4dbcd0e28b9bf951f4293805bf34f98df45e1aa8"
@@ -4426,14 +4381,14 @@ typed-array-length@^1.0.6:
44264381
possible-typed-array-names "^1.0.0"
44274382
reflect.getprototypeof "^1.0.6"
44284383

4429-
typescript-eslint@8.16.0:
4430-
version "8.16.0"
4431-
resolved "https://registry.yarnpkg.com/typescript-eslint/-/typescript-eslint-8.16.0.tgz#d608c972d6b2461ca10ec30fd3fa62a080baba19"
4432-
integrity sha512-wDkVmlY6O2do4V+lZd0GtRfbtXbeD0q9WygwXXSJnC1xorE8eqyC2L1tJimqpSeFrOzRlYtWnUp/uzgHQOgfBQ==
4384+
typescript-eslint@8.17.0:
4385+
version "8.17.0"
4386+
resolved "https://registry.yarnpkg.com/typescript-eslint/-/typescript-eslint-8.17.0.tgz#fa4033c26b3b40f778287bc12918d985481b220b"
4387+
integrity sha512-409VXvFd/f1br1DCbuKNFqQpXICoTB+V51afcwG1pn1a3Cp92MqAUges3YjwEdQ0cMUoCIodjVDAYzyD8h3SYA==
44334388
dependencies:
4434-
"@typescript-eslint/eslint-plugin" "8.16.0"
4435-
"@typescript-eslint/parser" "8.16.0"
4436-
"@typescript-eslint/utils" "8.16.0"
4389+
"@typescript-eslint/eslint-plugin" "8.17.0"
4390+
"@typescript-eslint/parser" "8.17.0"
4391+
"@typescript-eslint/utils" "8.17.0"
44374392

44384393
44394394
version "5.7.2"

0 commit comments

Comments
 (0)