Skip to content

Commit

Permalink
feat(f2elint/lint-staged): fix and write staged files
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe committed Apr 3, 2024
1 parent 67383b6 commit a54b778
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/f2elint/templates/lint-staged/package.merge.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
"prepare": "husky install"
},
"lint-staged": {
"*.{cjs,cts,js,jsx,mjs,mts,ts,tsx,vue}": "eslint",
"*.{cjs,cts,js,jsx,mjs,mts,ts,tsx,vue}": "eslint --fix",
<% if (stylelint) { %>
"*.{css,less,scss}": "stylelint",
"*.{css,less,scss}": "stylelint --fix",
<% } %>
<% if (prettier) { %>
"*.{cjs,css,cts,html,js,json,jsx,less,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}": "prettier --write",
<% } %>
},
"devDependencies": {
Expand Down

0 comments on commit a54b778

Please sign in to comment.