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, });