Добавил линтинг стилей на precommit hook
Showing
... | @@ -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", | ||
... | ... |
Please
register
or
sign in
to comment