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