add style lint
Showing
... | @@ -4,7 +4,8 @@ | ... | @@ -4,7 +4,8 @@ |
"scripts": { | "scripts": { | ||
"start": "roadhog server", | "start": "roadhog server", | ||
"build": "roadhog build", | "build": "roadhog build", | ||
"lint": "eslint --ext .js src mock tests", | "lint:style": "stylelint \"src/**/*.less\" --syntax less", | ||
"lint": "eslint --ext .js src mock tests && npm run lint:style", | |||
"precommit": "npm run lint", | "precommit": "npm run lint", | ||
"site": "roadhog-api-doc static", | "site": "roadhog-api-doc static", | ||
"test": "jest", | "test": "jest", | ||
... | @@ -49,7 +50,9 @@ | ... | @@ -49,7 +50,9 @@ |
"react-test-renderer": "^15.6.1", | "react-test-renderer": "^15.6.1", | ||
"redbox-react": "^1.3.2", | "redbox-react": "^1.3.2", | ||
"roadhog": "^1.0.2", | "roadhog": "^1.0.2", | ||
"roadhog-api-doc": "^0.1.5" | "roadhog-api-doc": "^0.1.5", | ||
"stylelint": "^8.0.0", | |||
"stylelint-config-standard": "^17.0.0" | |||
}, | }, | ||
"babel": { | "babel": { | ||
"presets": [ | "presets": [ | ||
... | ... |
Please register or sign in to comment