Files
compiler-explorer/lint-staged.config.mjs
Matt Godbolt e80e321334 Split out lint staged config; lint tsc (#4197)
* Split out lint staged config; lint tsc

Per https://www.npmjs.com/package/lint-staged#using-js-configuration-files
this is how to run `tsc` appropriately without passing it the config files
(which doesn't work with `-p <>` which we also need to supply consistent
tsc configuration).

* suppress warnings
2022-10-31 22:42:55 -05:00

7 lines
230 B
JavaScript

// eslint-disable-next-line import/no-default-export
export default {
'*.ts': [() => 'npm run ts-check'],
'*.[jt]s': ['npm run format-files --', 'npm run lint-files --'],
'*.{html,md}': ['npm run format-files --'],
};