From ce5d0ed5c0823d5f75e6afbac3f721537636fc16 Mon Sep 17 00:00:00 2001 From: bowbowzai Date: Thu, 26 Sep 2024 21:41:08 +0800 Subject: [PATCH] fix: workflow --- .lintstagedrc.js | 6 ------ packages/nextjs/.eslintignore | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index 941bf78..ce2d6bb 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -7,15 +7,9 @@ const buildNextEslintCommand = (filenames) => const checkTypesNextCommand = () => "yarn next:check-types"; -const buildHardhatEslintCommand = (filenames) => - `yarn hardhat:lint-staged --fix ${filenames - .map((f) => path.relative(path.join("packages", "hardhat"), f)) - .join(" ")}`; - module.exports = { "packages/nextjs/**/*.{ts,tsx}": [ buildNextEslintCommand, checkTypesNextCommand, ], - "packages/hardhat/**/*.{ts,tsx}": [buildHardhatEslintCommand], }; diff --git a/packages/nextjs/.eslintignore b/packages/nextjs/.eslintignore index 2ea0b64..11b1edb 100644 --- a/packages/nextjs/.eslintignore +++ b/packages/nextjs/.eslintignore @@ -9,3 +9,4 @@ node_modules/ **/*.png **/*.svg **/generated/**/* +**/lib/*