From 7d179411b23e6b06e669a3f67333d1a55ecc5592 Mon Sep 17 00:00:00 2001 From: maruware Date: Tue, 16 Jan 2024 16:14:17 +0900 Subject: [PATCH] [docs] Fix eslint config in compatibility (#200) --- docs/compatibility/node-postgres.md | 10 ++++++---- docs/compatibility/prisma.md | 16 +++++++++------- docs/compatibility/sequelize.md | 6 +++--- docs/compatibility/slonik.md | 16 +++++++++------- 4 files changed, 27 insertions(+), 21 deletions(-) diff --git a/docs/compatibility/node-postgres.md b/docs/compatibility/node-postgres.md index 85e6607e..194fd52e 100644 --- a/docs/compatibility/node-postgres.md +++ b/docs/compatibility/node-postgres.md @@ -43,10 +43,12 @@ Second, add the following rule to your ESLint config: "connections": [ { // ... - "targets": { - // The name of the wrapper that should be checked: - "wrapper": "client.query", - } + "targets": [ + { + // The name of the wrapper that should be checked: + "wrapper": "client.query", + } + ] } ] } diff --git a/docs/compatibility/prisma.md b/docs/compatibility/prisma.md index 6b0f58e8..0f2477e5 100644 --- a/docs/compatibility/prisma.md +++ b/docs/compatibility/prisma.md @@ -35,13 +35,15 @@ Second, add the following rule to your ESLint config: { // The migrations path: "migrationsDir": "./prisma/migrations", - "targets": { - // The sql tags that should be checked. - // either `db.$queryRaw` or `db.$executeRaw`: - "tag": "prisma.+($queryRaw|$executeRaw)", - // Transform the query result to array - "transform": "{type}[]" - } + "targets": [ + { + // The sql tags that should be checked. + // either `db.$queryRaw` or `db.$executeRaw`: + "tag": "prisma.+($queryRaw|$executeRaw)", + // Transform the query result to array + "transform": "{type}[]" + } + ] } ] } diff --git a/docs/compatibility/sequelize.md b/docs/compatibility/sequelize.md index 08827ee6..d6699559 100644 --- a/docs/compatibility/sequelize.md +++ b/docs/compatibility/sequelize.md @@ -44,13 +44,13 @@ Second, add the following rule to your ESLint config: { // ... - "targets": { + "targets": [ + { // The name of the wrapper that should be checked: "wrapper": "sequelize.query", } - } + ] } - ] } ] } diff --git a/docs/compatibility/slonik.md b/docs/compatibility/slonik.md index f239abdf..4cb9d74e 100644 --- a/docs/compatibility/slonik.md +++ b/docs/compatibility/slonik.md @@ -30,13 +30,15 @@ Second, add the following rule to your ESLint config: "connections": [ { // ... - "targets": { - // The name of the tag that should be checked: - "tag": "sql.+(type\\(*\\)|unsafe)", - // this will tell safeql to not suggest type annotations - // since we will be using our Zod schemas in slonik - "skipTypeAnnotations": true - } + "targets": [ + { + // The name of the tag that should be checked: + "tag": "sql.+(type\\(*\\)|unsafe)", + // this will tell safeql to not suggest type annotations + // since we will be using our Zod schemas in slonik + "skipTypeAnnotations": true + } + ] } ] }