feat: add prettier to lint

This commit is contained in:
nafees nazik
2024-03-09 00:17:04 +05:30
parent d462ca0b46
commit 7631c6e90e

View File

@ -8,7 +8,7 @@ const buildPrettierCommand = (filenames) =>
/** @type {import('lint-staged').Config} */
module.exports = {
'**/*.{ts,tsx,cts,mts}': [buildEslintCommand],
'**/*.{ts,tsx,cts,mts}': [buildEslintCommand, buildPrettierCommand],
'**/*.{js,jsx,cjs,mjs}': [buildPrettierCommand],
'**/*.{yml,mdx}': [buildPrettierCommand],
'**/*/package.json': 'npm run precommit',