Add the stylelint pre-commit hook
This commit is contained in:
parent
a21e995527
commit
cb8e2b38f5
2 changed files with 13 additions and 3 deletions
6
.stylelintrc
Normal file
6
.stylelintrc
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"extends": "stylelint-config-standard",
|
||||
"rules": {
|
||||
"indentation": 4
|
||||
}
|
||||
}
|
10
package.json
10
package.json
|
@ -9,16 +9,20 @@
|
|||
"gulp-zopfli": "^1.0.0",
|
||||
"laravel-elixir": "^6.0.0-2",
|
||||
"lint-staged": "^1.0.1",
|
||||
"pre-commit": "^1.1.3"
|
||||
"pre-commit": "^1.1.3",
|
||||
"stylelint": "^6.6.0",
|
||||
"stylelint-config-standard": "^9.0.0"
|
||||
},
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"prod": "gulp --production",
|
||||
"dev": "gulp watch",
|
||||
"lint-staged": "lint-staged"
|
||||
"lint-staged": "lint-staged",
|
||||
"stylelint-staged": "stylint --syntax=scss"
|
||||
},
|
||||
"lint-staged": {
|
||||
"eslint": "resources/assets/js/*.js"
|
||||
"eslint": "resources/assets/js/*.js",
|
||||
"stylint-staged": "resources/assets/sass/**/*.scss"
|
||||
},
|
||||
"pre-commit": [
|
||||
"lint-staged"
|
||||
|
|
Loading…
Add table
Reference in a new issue