Files
sign/lint-staged.config.cjs

8 lines
360 B
JavaScript
Raw Normal View History

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