Skip to content

Commit

Permalink
chore: install husky lint-staged stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
letwebdev committed Feb 15, 2024
1 parent 583d458 commit 457e3fa
Show file tree
Hide file tree
Showing 5 changed files with 4,994 additions and 281 deletions.
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
npm run "lint:staged"
5 changes: 5 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"*.{js,ts,jsx,tsx}": ["prettier --write", "eslint --fix"],
"*.vue": ["stylelint --fix", "prettier --write", "eslint --fix"],
"*.{less,css,scss}": ["stylelint --fix", "prettier --write"]
}
4 changes: 4 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["stylelint-config-standard-scss", "stylelint-config-rational-order", "stylelint-config-standard-vue/scss"]
}

Loading

0 comments on commit 457e3fa

Please sign in to comment.