From b33e4ee14220860c7521aa526c4a932ed8e1989b Mon Sep 17 00:00:00 2001 From: hyperse-net Date: Fri, 7 Jun 2024 21:23:07 +0800 Subject: [PATCH] chore: update lint-staged --- lint-staged.config.mjs | 2 +- packages/next-auth/lint-staged.config.mjs | 2 +- packages/next-core/lint-staged.config.mjs | 2 +- packages/next-demo/lint-staged.config.mjs | 2 +- packages/next-env/lint-staged.config.mjs | 2 +- packages/next-graphql/lint-staged.config.mjs | 2 +- packages/next-prisma/lint-staged.config.mjs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lint-staged.config.mjs b/lint-staged.config.mjs index c52b7c2..6934823 100644 --- a/lint-staged.config.mjs +++ b/lint-staged.config.mjs @@ -18,7 +18,7 @@ const rules = { cache: true, // when autofixing staged-files a good tip is to disable react-hooks/exhaustive-deps, cause // a change here can potentially break things without proper visibility. - rules: ['react-hooks/exhaustive-deps: off'], + rules: [], maxWarnings: 25, files: filenames, }); diff --git a/packages/next-auth/lint-staged.config.mjs b/packages/next-auth/lint-staged.config.mjs index a9a496a..adb3453 100644 --- a/packages/next-auth/lint-staged.config.mjs +++ b/packages/next-auth/lint-staged.config.mjs @@ -18,7 +18,7 @@ const rules = { cache: true, // when autofixing staged-files a good tip is to disable react-hooks/exhaustive-deps, cause // a change here can potentially break things without proper visibility. - rules: ['react-hooks/exhaustive-deps: off'], + rules: [], maxWarnings: 25, files: filenames, }); diff --git a/packages/next-core/lint-staged.config.mjs b/packages/next-core/lint-staged.config.mjs index a9a496a..adb3453 100644 --- a/packages/next-core/lint-staged.config.mjs +++ b/packages/next-core/lint-staged.config.mjs @@ -18,7 +18,7 @@ const rules = { cache: true, // when autofixing staged-files a good tip is to disable react-hooks/exhaustive-deps, cause // a change here can potentially break things without proper visibility. - rules: ['react-hooks/exhaustive-deps: off'], + rules: [], maxWarnings: 25, files: filenames, }); diff --git a/packages/next-demo/lint-staged.config.mjs b/packages/next-demo/lint-staged.config.mjs index a9a496a..adb3453 100644 --- a/packages/next-demo/lint-staged.config.mjs +++ b/packages/next-demo/lint-staged.config.mjs @@ -18,7 +18,7 @@ const rules = { cache: true, // when autofixing staged-files a good tip is to disable react-hooks/exhaustive-deps, cause // a change here can potentially break things without proper visibility. - rules: ['react-hooks/exhaustive-deps: off'], + rules: [], maxWarnings: 25, files: filenames, }); diff --git a/packages/next-env/lint-staged.config.mjs b/packages/next-env/lint-staged.config.mjs index a9a496a..adb3453 100644 --- a/packages/next-env/lint-staged.config.mjs +++ b/packages/next-env/lint-staged.config.mjs @@ -18,7 +18,7 @@ const rules = { cache: true, // when autofixing staged-files a good tip is to disable react-hooks/exhaustive-deps, cause // a change here can potentially break things without proper visibility. - rules: ['react-hooks/exhaustive-deps: off'], + rules: [], maxWarnings: 25, files: filenames, }); diff --git a/packages/next-graphql/lint-staged.config.mjs b/packages/next-graphql/lint-staged.config.mjs index a9a496a..adb3453 100644 --- a/packages/next-graphql/lint-staged.config.mjs +++ b/packages/next-graphql/lint-staged.config.mjs @@ -18,7 +18,7 @@ const rules = { cache: true, // when autofixing staged-files a good tip is to disable react-hooks/exhaustive-deps, cause // a change here can potentially break things without proper visibility. - rules: ['react-hooks/exhaustive-deps: off'], + rules: [], maxWarnings: 25, files: filenames, }); diff --git a/packages/next-prisma/lint-staged.config.mjs b/packages/next-prisma/lint-staged.config.mjs index a9a496a..adb3453 100644 --- a/packages/next-prisma/lint-staged.config.mjs +++ b/packages/next-prisma/lint-staged.config.mjs @@ -18,7 +18,7 @@ const rules = { cache: true, // when autofixing staged-files a good tip is to disable react-hooks/exhaustive-deps, cause // a change here can potentially break things without proper visibility. - rules: ['react-hooks/exhaustive-deps: off'], + rules: [], maxWarnings: 25, files: filenames, });