2023-12-27 11:00:53 +11:00
|
|
|
/** @type {import('lint-staged').Config} */
|
2023-08-15 16:02:58 -05:00
|
|
|
module.exports = {
|
2023-12-27 11:00:53 +11:00
|
|
|
'**/*.{ts,tsx,cts,mts}': (files) => `eslint --fix ${files.join(' ')}`,
|
|
|
|
|
'**/*.{js,jsx,cjs,mjs}': (files) => `prettier --write ${files.join(' ')}`,
|
|
|
|
|
'**/*.{yml,mdx}': (files) => `prettier --write ${files.join(' ')}`,
|
|
|
|
|
'**/*/package.json': 'npm run precommit',
|
2023-08-16 06:27:45 -05:00
|
|
|
};
|