Skip to content

Commit

Permalink
stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe committed Feb 6, 2024
1 parent 154f4c7 commit a2875d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/f2elint/templates/lint-staged/package.merge.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
},
"lint-staged": {
"*.{cjs,cts,js,jsx,mjs,mts,ts,tsx,vue}": "eslint",
"*.{css,less,scss}": "stylelint"
<% if (stylejs) { %>
"*.{css,less,scss}": "stylelint",
<% } %>
},
"devDependencies": {
"husky": "^8.0.0",
Expand Down
9 changes: 9 additions & 0 deletions packages/f2elint/templates/stylelint/package.merge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"stylelint": {
"extends": ["stylelint-config-ali"]
},
"devDependencies": {
"stylelint": "^16.0.2",
"stylelint-config-ali": "^2.1.0"
}
}

0 comments on commit a2875d6

Please sign in to comment.