diff --git a/lint-staged.config.js b/lint-staged.config.js index 26b13a9..2dd7001 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -1,10 +1,14 @@ export default { '**/*.vue': [ + 'prettier --write', 'eslint -c .eslintrc.cjs', 'stylelint --config stylelint.config.js' ], - '**/*.{ts,tsx,js,jsx}': ['eslint -c .eslintrc.cjs'], + '**/*.{ts,tsx,js,jsx}': ['eslint -c .eslintrc.cjs', 'prettier --write'], '**/*.{ts,tsx,vue}': [() => 'tsc -p tsconfig.json --noEmit'], - '**/*.{scss,css,sass}': ['stylelint --config stylelint.config.js'], + '**/*.{scss,css,sass}': [ + 'stylelint --config stylelint.config.js', + 'prettier --write' + ], '**/*.{json,md}': ['prettier --write'] }