Skip to content

Commit

Permalink
package.json: add lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
chinchang committed Jun 17, 2018
1 parent 31faf02 commit 8bbb5f4
Show file tree
Hide file tree
Showing 3 changed files with 515 additions and 240 deletions.
3 changes: 2 additions & 1 deletion .prettierignore
@@ -1,2 +1,3 @@
src/lib/
app/
app/
build/
11 changes: 10 additions & 1 deletion package.json
Expand Up @@ -8,14 +8,21 @@
"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"
},
"eslintIgnore": [
"build/*"
],
"lint-staged": {
"*.{js,jsx,json,css,md}": [
"prettier --write",
"git add"
]
},
"devDependencies": {
"babel-eslint": "^7.2.3",
"babel-minify": "^0.2.0",
Expand All @@ -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",
Expand Down

0 comments on commit 8bbb5f4

Please sign in to comment.