We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62cf7f2 commit 6b513adCopy full SHA for 6b513ad
.lintstagedrc.cjs
@@ -1,9 +1,7 @@
1
module.exports = {
2
- 'src/**/*.(ts|tsx)': () => 'npx tsc --noEmit',
3
- 'src/**/*.(css|scss|ts|tsx)': (filenames) => [`npx prettier --write ${filenames.join(' ')}`],
4
- 'src/**/*.(ts|tsx)': () => 'next lint'
5
-
6
- // 'src/**/*.(ts|tsx)': (filenames) => [
7
- // `next lint --file ${filenames.map((f) => path.relative(process.cwd(), f)).join(' --file ')}`
8
- // ]
+ 'src/**/*.(ts|tsx)': () => 'next lint',
+ 'src/**/*.(ts|tsx)': () => 'tsc --noEmit',
+ 'src/**/*.(html|css|scss|js|jsx|ts|tsx|mdx)': (filenames) => [
+ `prettier --write ${filenames.join(' ')} --cache`
+ ]
9
};
0 commit comments