Commit 91441883 authored by Nikolay Gromov's avatar Nikolay Gromov

Добавил линтинг стилей на precommit hook

parent 8190b7c5
...@@ -74,10 +74,15 @@ ...@@ -74,10 +74,15 @@
} }
}, },
"scripts": { "scripts": {
"test:style": "stylelint \"src/**/*.scss\" --syntax scss", "test:style": "stylelint \"src/**/*.scss\" --syntax=scss",
"start": "gulp", "start": "gulp",
"deploy": "cross-env NODE_ENV=production ./node_modules/.bin/gulp build && cross-env ./node_modules/.bin/gulp deploy", "deploy": "cross-env NODE_ENV=production ./node_modules/.bin/gulp build && cross-env ./node_modules/.bin/gulp deploy",
"build": "cross-env NODE_ENV=production npm start build" "build": "cross-env NODE_ENV=production npm start build",
"lint-staged": "lint-staged",
"precommit": "lint-staged"
},
"lint-staged": {
"*.scss": "stylelint --syntax=scss"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^6.7.7", "autoprefixer": "^6.7.7",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment