Skip to content
This repository was archived by the owner on Sep 28, 2020. It is now read-only.

Commit eba1199

Browse files
committed
Update npmpub and add prettier
1 parent ce31d52 commit eba1199

File tree

3 files changed

+135
-85
lines changed

3 files changed

+135
-85
lines changed

.eslintrc

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,7 @@ env:
1010
node: true
1111

1212
rules:
13-
indent: [2, 2] # 2 spaces indentation
14-
max-len: [2, 120, 4]
15-
quotes: [2, "double"]
16-
semi: [2, "never"]
17-
no-multiple-empty-lines: [2, {"max": 1}]
18-
19-
brace-style: [2, "stroustrup"]
20-
comma-dangle: [2, "always-multiline"]
21-
comma-style: [2, "last"]
22-
computed-property-spacing: [2, "never"]
23-
dot-location: [2, "property"]
24-
2513
one-var: [2, "never"]
2614
#no-var: [2]
2715
prefer-const: [2]
2816
no-bitwise: [2]
29-
30-
object-curly-spacing: [2, "never"]
31-
array-bracket-spacing: [2, "never"]
32-
space-unary-ops: [2, {"words": true, "nonwords": false}]
33-
keyword-spacing: [2, {"after": true}]
34-
space-before-blocks: [2, "always"]
35-
space-before-function-paren: [2, "never"]
36-
space-in-parens: [2, "never"]
37-
spaced-comment: [2, "always"]

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,14 @@
3030
"ava": "^0.17.0",
3131
"eslint": "^5.1.0",
3232
"eslint-friendly-formatter": "^2.0.4",
33-
"npmpub": "^3.0.1",
33+
"husky": "^0.14.3",
34+
"npmpub": "^4.0.1",
35+
"prettier": "^1.13.7",
36+
"pretty-quick": "^1.6.0",
3437
"webpack": "^4.0.0"
3538
},
3639
"scripts": {
40+
"precommit": "pretty-quick --staged",
3741
"lint": "eslint .",
3842
"ava": "ava",
3943
"test": "npm run lint && npm run ava",

0 commit comments

Comments
 (0)