2020-06-04 19:22:21 +02:00
|
|
|
module.exports = {
|
2021-01-08 00:10:35 +02:00
|
|
|
// Don't compile when committing as it will process all TS files in the
|
|
|
|
// monorepo, which is too slow. Errors should be checked during development
|
|
|
|
// using `npm run watch`.
|
|
|
|
//
|
|
|
|
// Or if we add this back, we could do something like this:
|
|
|
|
// https://stackoverflow.com/a/44748041/561309
|
|
|
|
//
|
|
|
|
// The script would check where the TS file is located, then use the right
|
|
|
|
// tsconfig.json file along with the tsconfig override.
|
|
|
|
//
|
|
|
|
// '**/*.ts?(x)': () => 'npm run tsc',
|
2020-06-04 19:22:21 +02:00
|
|
|
'*.{js,jsx,ts,tsx}': [
|
2021-12-20 17:08:43 +02:00
|
|
|
'yarn run linter-precommit',
|
2022-04-19 19:57:15 +02:00
|
|
|
'yarn run checkLibPaths',
|
2022-05-05 17:34:52 +02:00
|
|
|
'yarn run spellcheck',
|
2020-06-04 19:22:21 +02:00
|
|
|
'git add',
|
|
|
|
],
|
|
|
|
};
|