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

Commit 127c5c6

Browse files
committed
chore: format code before commit
1 parent 64e1680 commit 127c5c6

File tree

2 files changed

+54
-4
lines changed

2 files changed

+54
-4
lines changed

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
"test": "rm -rf ./build && tsc -p ./ && nyc ava ./build/test",
88
"build": "rm -rf ./build && tsc -p ./ -d",
99
"start": "npm run build && parcel ./doc/index.html -d vm.js",
10-
"docs": "npm run build && parcel build doc/index.html -d ./vm.js && gh-pages -d ./vm.js",
11-
"format": "prettier --write ./src/**/*.ts ./test/**/*.ts"
10+
"docs":
11+
"npm run build && parcel build doc/index.html -d ./vm.js && gh-pages -d ./vm.js",
12+
"format": "prettier --write ./src/**/*.ts ./test/**/*.ts",
13+
"precommit": "pretty-quick --staged"
1214
},
1315
"repository": {
1416
"type": "git",
@@ -32,10 +34,12 @@
3234
"babel-preset-react": "^6.24.1",
3335
"coveralls": "^3.0.0",
3436
"gh-pages": "^1.1.0",
37+
"husky": "^0.14.3",
3538
"normalize.css": "^8.0.0",
3639
"nyc": "^11.4.1",
3740
"parcel-bundler": "^1.6.2",
3841
"prettier": "^1.11.1",
42+
"pretty-quick": "^1.4.1",
3943
"react": "^16.2.0",
4044
"react-codemirror": "^1.0.0",
4145
"react-dom": "^16.2.0",

yarn.lock

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ chalk@^1.1.3:
13271327
strip-ansi "^3.0.0"
13281328
supports-color "^2.0.0"
13291329

1330-
chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.1:
1330+
chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.3.1:
13311331
version "2.3.2"
13321332
resolved "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz#250dc96b07491bfd601e648d66ddf5f60c7a5c65"
13331333
dependencies:
@@ -2155,6 +2155,18 @@ execa@^0.7.0:
21552155
signal-exit "^3.0.0"
21562156
strip-eof "^1.0.0"
21572157

2158+
execa@^0.8.0:
2159+
version "0.8.0"
2160+
resolved "https://registry.npmjs.org/execa/-/execa-0.8.0.tgz#d8d76bbc1b55217ed190fd6dd49d3c774ecfc8da"
2161+
dependencies:
2162+
cross-spawn "^5.0.1"
2163+
get-stream "^3.0.0"
2164+
is-stream "^1.1.0"
2165+
npm-run-path "^2.0.0"
2166+
p-finally "^1.0.0"
2167+
signal-exit "^3.0.0"
2168+
strip-eof "^1.0.0"
2169+
21582170
expand-brackets@^0.1.4:
21592171
version "0.1.5"
21602172
resolved "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b"
@@ -2788,6 +2800,14 @@ hullabaloo-config-manager@^1.1.0:
27882800
resolve-from "^3.0.0"
27892801
safe-buffer "^5.0.1"
27902802

2803+
husky@^0.14.3:
2804+
version "0.14.3"
2805+
resolved "https://registry.npmjs.org/husky/-/husky-0.14.3.tgz#c69ed74e2d2779769a17ba8399b54ce0b63c12c3"
2806+
dependencies:
2807+
is-ci "^1.0.10"
2808+
normalize-path "^1.0.0"
2809+
strip-indent "^2.0.0"
2810+
27912811
iconv-lite@~0.4.13:
27922812
version "0.4.19"
27932813
resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b"
@@ -2800,6 +2820,10 @@ ignore-by-default@^1.0.0:
28002820
version "1.0.1"
28012821
resolved "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09"
28022822

2823+
ignore@^3.3.7:
2824+
version "3.3.7"
2825+
resolved "https://registry.npmjs.org/ignore/-/ignore-3.3.7.tgz#612289bfb3c220e186a58118618d5be8c1bab021"
2826+
28032827
import-lazy@^2.1.0:
28042828
version "2.1.0"
28052829
resolved "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43"
@@ -2902,7 +2926,7 @@ is-builtin-module@^1.0.0:
29022926
dependencies:
29032927
builtin-modules "^1.0.0"
29042928

2905-
is-ci@^1.0.7:
2929+
is-ci@^1.0.10, is-ci@^1.0.7:
29062930
version "1.1.0"
29072931
resolved "https://registry.npmjs.org/is-ci/-/is-ci-1.1.0.tgz#247e4162e7860cebbdaf30b774d6b0ac7dcfe7a5"
29082932
dependencies:
@@ -3676,6 +3700,10 @@ mixin-deep@^1.2.0:
36763700
dependencies:
36773701
minimist "0.0.8"
36783702

3703+
mri@^1.1.0:
3704+
version "1.1.0"
3705+
resolved "https://registry.npmjs.org/mri/-/mri-1.1.0.tgz#5c0a3f29c8ccffbbb1ec941dcec09d71fa32f36a"
3706+
36793707
ms@2.0.0:
36803708
version "2.0.0"
36813709
resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
@@ -3795,6 +3823,10 @@ normalize-package-data@^2.3.2, normalize-package-data@^2.3.4:
37953823
semver "2 || 3 || 4 || 5"
37963824
validate-npm-package-license "^3.0.1"
37973825

3826+
normalize-path@^1.0.0:
3827+
version "1.0.0"
3828+
resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-1.0.0.tgz#32d0e472f91ff345701c15a8311018d3b0a90379"
3829+
37983830
normalize-path@^2.0.0, normalize-path@^2.0.1, normalize-path@^2.1.1:
37993831
version "2.1.1"
38003832
resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"
@@ -4568,6 +4600,16 @@ pretty-ms@^3.0.0:
45684600
parse-ms "^1.0.0"
45694601
plur "^2.1.2"
45704602

4603+
pretty-quick@^1.4.1:
4604+
version "1.4.1"
4605+
resolved "https://registry.npmjs.org/pretty-quick/-/pretty-quick-1.4.1.tgz#9d41f778d2d4d940ec603d1293a0998e84c4722c"
4606+
dependencies:
4607+
chalk "^2.3.0"
4608+
execa "^0.8.0"
4609+
find-up "^2.1.0"
4610+
ignore "^3.3.7"
4611+
mri "^1.1.0"
4612+
45714613
private@^0.1.6, private@^0.1.7:
45724614
version "0.1.8"
45734615
resolved "https://registry.npmjs.org/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff"
@@ -5440,6 +5482,10 @@ strip-indent@^1.0.1:
54405482
dependencies:
54415483
get-stdin "^4.0.1"
54425484

5485+
strip-indent@^2.0.0:
5486+
version "2.0.0"
5487+
resolved "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68"
5488+
54435489
strip-json-comments@~2.0.1:
54445490
version "2.0.1"
54455491
resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"

0 commit comments

Comments
 (0)