mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
feat: add prettier to lint
This commit is contained in:
@ -8,7 +8,7 @@ const buildPrettierCommand = (filenames) =>
|
|||||||
|
|
||||||
/** @type {import('lint-staged').Config} */
|
/** @type {import('lint-staged').Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
'**/*.{ts,tsx,cts,mts}': [buildEslintCommand],
|
'**/*.{ts,tsx,cts,mts}': [buildEslintCommand, buildPrettierCommand],
|
||||||
'**/*.{js,jsx,cjs,mjs}': [buildPrettierCommand],
|
'**/*.{js,jsx,cjs,mjs}': [buildPrettierCommand],
|
||||||
'**/*.{yml,mdx}': [buildPrettierCommand],
|
'**/*.{yml,mdx}': [buildPrettierCommand],
|
||||||
'**/*/package.json': 'npm run precommit',
|
'**/*/package.json': 'npm run precommit',
|
||||||
|
|||||||
Reference in New Issue
Block a user