Skip to content

Commit 97bf64e

Browse files
committed
Add prettier
1 parent df27fdb commit 97bf64e

File tree

5 files changed

+133
-71
lines changed

5 files changed

+133
-71
lines changed

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn run pre-commit

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarn.lock

.prettierrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"tabWidth": 4,
3+
"trailingComma": "es5",
4+
"bracketSameLine": false,
5+
"printWidth": 120,
6+
"bracketSpacing": false,
7+
"arrowParens": "always",
8+
"endOfLine": "lf"
9+
}

package.json

+75-70
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,77 @@
11
{
2-
"name": "@corlab/aware-component-library",
3-
"version": "0.2.0",
4-
"main": "lib/index.js",
5-
"module": "lib/",
6-
"files": [
7-
"lib"
8-
],
9-
"types": "lib/index.d.ts",
10-
"description": "",
11-
"scripts": {
12-
"build": "rollup -c",
13-
"test": "jest",
14-
"test:watch": "jest --watch",
15-
"storybook": "start-storybook -p 6006",
16-
"storybook:export": "build-storybook",
17-
"prepack": "yarn run build"
18-
},
19-
"repository": {
20-
"type": "git",
21-
"url": "git+https://github.com/corlab/aware-component-library.git"
22-
},
23-
"keywords": [
24-
"React",
25-
"Component",
26-
"Library",
27-
"Typescript"
28-
],
29-
"license": "MIT",
30-
"bugs": {
31-
"url": "https://github.com/corlab/aware-component-library/issues"
32-
},
33-
"homepage": "https://github.com/corlab/aware-component-library#readme",
34-
"peerDependencies": {
35-
"@material-ui/core": ">=^4.0.0",
36-
"react": ">=16.8.0",
37-
"react-dom": ">=16.8.0"
38-
},
39-
"dependencies": {
40-
"bpmn-js": "^8.7.3",
41-
"markdown-to-jsx": "^7.1.3"
42-
},
43-
"devDependencies": {
44-
"@babel/core": "^7.12.10",
45-
"@material-ui/core": "^4.11.0",
46-
"@rollup/plugin-commonjs": "^17.0.0",
47-
"@rollup/plugin-node-resolve": "^11.0.1",
48-
"@storybook/addon-knobs": "6.3.1",
49-
"@storybook/react": "^6.1.12",
50-
"@testing-library/jest-dom": "^5.5.0",
51-
"@testing-library/react": "^11.2.3",
52-
"@types/jest": "^24.0.24",
53-
"@types/react": "^16.9.12",
54-
"@types/react-dom": "^16.9.8",
55-
"babel-loader": "^8.1.0",
56-
"babel-preset-react-app": "^10.0.0",
57-
"identity-obj-proxy": "^3.0.0",
58-
"jest": "^26.6.3",
59-
"node-sass": "^6.0.1",
60-
"postcss": "8.3.8",
61-
"react": "^16.13.1",
62-
"react-dom": "^16.13.1",
63-
"rollup": "^2.58.0",
64-
"rollup-plugin-peer-deps-external": "^2.2.4",
65-
"rollup-plugin-postcss": "4.0.1",
66-
"rollup-plugin-rename": "1.0.1",
67-
"rollup-plugin-typescript2": "^0.30.0",
68-
"sass-loader": "^12.1.0",
69-
"ts-jest": "^27.0.5",
70-
"typescript": "^4.4.3"
71-
}
2+
"name": "@corlab/aware-component-library",
3+
"version": "0.2.0",
4+
"main": "lib/index.js",
5+
"module": "lib/",
6+
"files": [
7+
"lib"
8+
],
9+
"types": "lib/index.d.ts",
10+
"description": "",
11+
"scripts": {
12+
"build": "rollup -c",
13+
"test": "jest",
14+
"test:watch": "jest --watch",
15+
"storybook": "start-storybook -p 6006",
16+
"storybook:export": "build-storybook",
17+
"prepack": "yarn run build",
18+
"prepare": "husky install",
19+
"pre-commit": "pretty-quick --staged"
20+
},
21+
"repository": {
22+
"type": "git",
23+
"url": "git+https://github.com/corlab/aware-component-library.git"
24+
},
25+
"keywords": [
26+
"React",
27+
"Component",
28+
"Library",
29+
"Typescript"
30+
],
31+
"license": "MIT",
32+
"bugs": {
33+
"url": "https://github.com/corlab/aware-component-library/issues"
34+
},
35+
"homepage": "https://github.com/corlab/aware-component-library#readme",
36+
"peerDependencies": {
37+
"@material-ui/core": ">=^4.0.0",
38+
"react": ">=16.8.0",
39+
"react-dom": ">=16.8.0"
40+
},
41+
"dependencies": {
42+
"bpmn-js": "^8.7.3",
43+
"markdown-to-jsx": "^7.1.3"
44+
},
45+
"devDependencies": {
46+
"@babel/core": "^7.12.10",
47+
"@material-ui/core": "^4.11.0",
48+
"@rollup/plugin-commonjs": "^17.0.0",
49+
"@rollup/plugin-node-resolve": "^11.0.1",
50+
"@storybook/addon-knobs": "6.3.1",
51+
"@storybook/react": "^6.1.12",
52+
"@testing-library/jest-dom": "^5.5.0",
53+
"@testing-library/react": "^11.2.3",
54+
"@types/jest": "^24.0.24",
55+
"@types/react": "^16.9.12",
56+
"@types/react-dom": "^16.9.8",
57+
"babel-loader": "^8.1.0",
58+
"babel-preset-react-app": "^10.0.0",
59+
"husky": "7.0.2",
60+
"identity-obj-proxy": "^3.0.0",
61+
"jest": "^26.6.3",
62+
"node-sass": "^6.0.1",
63+
"postcss": "8.3.8",
64+
"prettier": "2.4.1",
65+
"pretty-quick": "3.1.1",
66+
"react": "^16.13.1",
67+
"react-dom": "^16.13.1",
68+
"rollup": "^2.58.0",
69+
"rollup-plugin-peer-deps-external": "^2.2.4",
70+
"rollup-plugin-postcss": "4.0.1",
71+
"rollup-plugin-rename": "1.0.1",
72+
"rollup-plugin-typescript2": "^0.30.0",
73+
"sass-loader": "^12.1.0",
74+
"ts-jest": "^27.0.5",
75+
"typescript": "^4.4.3"
76+
}
7277
}

yarn.lock

+44-1
Original file line numberDiff line numberDiff line change
@@ -2626,7 +2626,7 @@
26262626
dependencies:
26272627
"@types/braces" "*"
26282628

2629-
"@types/minimatch@*":
2629+
"@types/minimatch@*", "@types/minimatch@^3.0.3":
26302630
version "3.0.5"
26312631
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.5.tgz#1001cc5e6a3704b83c236027e77f2f58ea010f40"
26322632
integrity sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==
@@ -3261,6 +3261,11 @@ arr-union@^3.1.0:
32613261
resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4"
32623262
integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=
32633263

3264+
array-differ@^3.0.0:
3265+
version "3.0.0"
3266+
resolved "https://registry.yarnpkg.com/array-differ/-/array-differ-3.0.0.tgz#3cbb3d0f316810eafcc47624734237d6aee4ae6b"
3267+
integrity sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==
3268+
32643269
32653270
version "1.1.1"
32663271
resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
@@ -6703,6 +6708,11 @@ human-signals@^1.1.1:
67036708
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3"
67046709
integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==
67056710

6711+
6712+
version "7.0.2"
6713+
resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.2.tgz#21900da0f30199acca43a46c043c4ad84ae88dff"
6714+
integrity sha512-8yKEWNX4z2YsofXAMT7KvA1g8p+GxtB1ffV8XtpAEGuXNAbCV5wdNKH+qTpw8SM9fh4aMPDR+yQuKfgnreyZlg==
6715+
67066716
hyphenate-style-name@^1.0.3:
67076717
version "1.0.4"
67086718
resolved "https://registry.yarnpkg.com/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz#691879af8e220aea5750e8827db4ef62a54e361d"
@@ -8620,6 +8630,11 @@ move-concurrently@^1.0.1:
86208630
rimraf "^2.5.4"
86218631
run-queue "^1.0.3"
86228632

8633+
mri@^1.1.5:
8634+
version "1.2.0"
8635+
resolved "https://registry.yarnpkg.com/mri/-/mri-1.2.0.tgz#6721480fec2a11a4889861115a48b6cbe7cc8f0b"
8636+
integrity sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==
8637+
86238638
86248639
version "2.0.0"
86258640
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
@@ -8640,6 +8655,17 @@ ms@^2.1.1:
86408655
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
86418656
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
86428657

8658+
multimatch@^4.0.0:
8659+
version "4.0.0"
8660+
resolved "https://registry.yarnpkg.com/multimatch/-/multimatch-4.0.0.tgz#8c3c0f6e3e8449ada0af3dd29efb491a375191b3"
8661+
integrity sha512-lDmx79y1z6i7RNx0ZGCPq1bzJ6ZoDDKbvh7jxr9SJcWLkShMzXrHbYVpTdnhNM5MXpDUxCQ4DgqVttVXlBgiBQ==
8662+
dependencies:
8663+
"@types/minimatch" "^3.0.3"
8664+
array-differ "^3.0.0"
8665+
array-union "^2.1.0"
8666+
arrify "^2.0.1"
8667+
minimatch "^3.0.4"
8668+
86438669
nan@^2.12.1, nan@^2.13.2:
86448670
version "2.15.0"
86458671
resolved "https://registry.yarnpkg.com/nan/-/nan-2.15.0.tgz#3f34a473ff18e15c1b5626b62903b5ad6e665fee"
@@ -9767,6 +9793,11 @@ prelude-ls@~1.1.2:
97679793
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
97689794
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=
97699795

9796+
9797+
version "2.4.1"
9798+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.4.1.tgz#671e11c89c14a4cfc876ce564106c4a6726c9f5c"
9799+
integrity sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==
9800+
97709801
prettier@~2.2.1:
97719802
version "2.2.1"
97729803
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
@@ -9815,6 +9846,18 @@ pretty-hrtime@^1.0.3:
98159846
resolved "https://registry.yarnpkg.com/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz#b7e3ea42435a4c9b2759d99e0f201eb195802ee1"
98169847
integrity sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=
98179848

9849+
9850+
version "3.1.1"
9851+
resolved "https://registry.yarnpkg.com/pretty-quick/-/pretty-quick-3.1.1.tgz#93ca4e2dd38cc4e970e3f54a0ead317a25454688"
9852+
integrity sha512-ZYLGiMoV2jcaas3vTJrLvKAYsxDoXQBUn8OSTxkl67Fyov9lyXivJTl0+2WVh+y6EovGcw7Lm5ThYpH+Sh3XxQ==
9853+
dependencies:
9854+
chalk "^3.0.0"
9855+
execa "^4.0.0"
9856+
find-up "^4.1.0"
9857+
ignore "^5.1.4"
9858+
mri "^1.1.5"
9859+
multimatch "^4.0.0"
9860+
98189861
prismjs@^1.21.0:
98199862
version "1.25.0"
98209863
resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.25.0.tgz#6f822df1bdad965734b310b315a23315cf999756"

0 commit comments

Comments
 (0)