Skip to content

Commit

Permalink
chore: lint-staged add stylelint config
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgao365 committed Dec 27, 2023
1 parent 9ce8f2d commit 61ae25e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module.exports = {
'*.{js,ts,vue}': ['eslint --fix', 'prettier --write'],
'*.{js,cjs,ts,tsx}': ['eslint --fix', 'prettier --write'],
'*.{json,md}': ['prettier --write'],
'*.vue': ['eslint --fix', 'stylelint --fix', 'prettier --write'],
'*.{css,scss,less,html}': ['stylelint --fix', 'prettier --write'],
};

0 comments on commit 61ae25e

Please sign in to comment.