1
0
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:
Kushagra Gour 2018-06-17 15:55:19 +05:30
parent 31faf0207e
commit 8bbb5f409d
3 changed files with 515 additions and 240 deletions

View File

@ -1,2 +1,3 @@
src/lib/
app/
app/
build/

View File

@ -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",

741
yarn.lock

File diff suppressed because it is too large Load Diff