Skip to content

Commit

Permalink
add prettier/editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkyJie committed Jul 29, 2018
1 parent 9c48598 commit 8fa64af
Show file tree
Hide file tree
Showing 3 changed files with 1,270 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[*]
insert_final_newline = true
indent_size = 2
22 changes: 21 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,28 @@
"dependencies": {
"@pollyjs/adapter-fetch": "^1.0.1",
"@pollyjs/adapter-xhr": "^1.0.1",
"@pollyjs/cli": "^1.0.0",
"@pollyjs/core": "^1.1.0",
"@pollyjs/node-server": "^1.0.0",
"@pollyjs/persister-rest": "^1.0.1"
},
"devDependencies": {
"husky": "^1.0.0-rc.13",
"lint-staged": "^7.2.0",
"prettier": "1.13.7"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,json,md}": [
"prettier --write",
"git add"
]
},
"prettier": {
"singleQuote": true,
"trailingComma": "es5"
}
}
Loading

0 comments on commit 8fa64af

Please sign in to comment.