diff --git a/src/config/lintstagedrc.js b/src/config/lintstagedrc.js index f447b8cf..6363270b 100644 --- a/src/config/lintstagedrc.js +++ b/src/config/lintstagedrc.js @@ -10,5 +10,8 @@ module.exports = { `${kcdScripts} lint`, `${kcdScripts} test --findRelatedTests`, ], - '*.+(ts|tsx)': ifTypescript ? [`tsc --noEmit`] : undefined, + '!(types)/**/*.(ts|tsx)': ifTypescript ? [`tsc --noEmit`] : undefined, + 'types/!(__tests__)/**/*.(ts|tsx)': ifTypescript + ? [`tsc --noEmit`] + : undefined, }