|
1 | 1 | module.exports = { |
2 | | - // Type check TypeScript files |
3 | | - '**/*.(ts|tsx)': () => 'yarn tsc --noEmit', |
| 2 | + // Type check TypeScript files |
| 3 | + '**/*.(ts|tsx)': () => 'yarn tsc --noEmit', |
4 | 4 |
|
5 | | - // Lint then format TypeScript and JavaScript files |
6 | | - '**/*.(ts|tsx|js|jsx)': (filenames) => [ |
7 | | - `yarn eslint --fix ${filenames.join(' ')}`, |
8 | | - `yarn prettier --write ${filenames.join(' ')}`, |
9 | | - ], |
10 | | - |
11 | | - // Format css files |
12 | | - '**/*.(css|scss)': (filenames) => [ |
13 | | - `npx prettier --write ${filenames.join(' ')}`, |
14 | | - ], |
15 | | - |
16 | | - // Format MarkDown and JSON |
17 | | - '**/*.(md|json)': (filenames) => |
18 | | - `yarn prettier --write ${filenames.join(' ')}`, |
| 5 | + // Lint then format TypeScript and JavaScript files |
| 6 | + '**/*.(ts|tsx|js|jsx)': (filenames) => [ |
| 7 | + `yarn eslint --fix ${filenames.join(' ')}`, |
| 8 | + `yarn prettier --write ${filenames.join(' ')}`, |
| 9 | + ], |
| 10 | + |
| 11 | + // Format css files |
| 12 | + '**/*.(css|scss)': (filenames) => [ |
| 13 | + `npx prettier --write ${filenames.join(' ')}`, |
| 14 | + ], |
| 15 | + |
| 16 | + // Format MarkDown and JSON |
| 17 | + '**/*.(md|json)': (filenames) => |
| 18 | + `yarn prettier --write ${filenames.join(' ')}`, |
19 | 19 | }; |
0 commit comments