Files
sign/lint-staged.config.cjs

8 lines
330 B
JavaScript
Raw Normal View History

2023-12-27 11:00:53 +11:00
/** @type {import('lint-staged').Config} */
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',
};