mirror of
https://github.com/chinchang/web-maker.git
synced 2025-01-16 20:08:15 +01:00
package.json: add lint-staged
This commit is contained in:
parent
31faf0207e
commit
8bbb5f409d
@ -1,2 +1,3 @@
|
||||
src/lib/
|
||||
app/
|
||||
build/
|
11
package.json
11
package.json
@ -8,7 +8,8 @@
|
||||
"serve": "preact build && preact serve",
|
||||
"dev": "preact watch --template src/index.html --https --no-prerender",
|
||||
"lint": "eslint src",
|
||||
"test": "jest ./tests"
|
||||
"test": "jest ./tests",
|
||||
"precommit": "lint-staged"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "eslint-config-synacor"
|
||||
@ -16,6 +17,12 @@
|
||||
"eslintIgnore": [
|
||||
"build/*"
|
||||
],
|
||||
"lint-staged": {
|
||||
"*.{js,jsx,json,css,md}": [
|
||||
"prettier --write",
|
||||
"git add"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-eslint": "^7.2.3",
|
||||
"babel-minify": "^0.2.0",
|
||||
@ -27,9 +34,11 @@
|
||||
"gulp-rename": "^1.3.0",
|
||||
"gulp-uglify": "^3.0.0",
|
||||
"gulp-useref": "^3.1.3",
|
||||
"husky": "^0.14.3",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"if-env": "^1.0.0",
|
||||
"jest": "^21.2.1",
|
||||
"lint-staged": "^7.2.0",
|
||||
"merge-stream": "^1.0.1",
|
||||
"preact-cli": "^2.1.0",
|
||||
"preact-render-spy": "^1.2.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user