-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
128 lines (128 loc) · 3.54 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"description": "Collection of React Hooks",
"private": true,
"files": [
"lib/*"
],
"repository": {
"type": "git",
"url": "https://github.com/charlie-tango/hooks.git"
},
"scripts": {
"clean": "lerna clean",
"build": "lerna run build --stream",
"build:storybook": "lerna run build:storybook --scope @charlietango/storybook",
"dev": "lerna run dev --scope @charlietango/storybook",
"lint": "lerna run lint --stream --parallel",
"new-hook": "node tools/new-hook",
"update-readme": "node tools/update-readme",
"release": "cross-env HUSKY_BYPASS=true lerna publish",
"pretty": "prettier '**/*.{js,ts,tsx,md,json,yml,html}' --write",
"test": "lerna run test --stream --parallel"
},
"husky": {
"hooks": {
"pre-commit": "tsc && lint-staged",
"commit-msg": "[[ -n $HUSKY_BYPASS ]] || commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"packages/*/package.json": [
"yarn update-readme",
"git add README.md",
"git add packages/hooks/readme.md"
],
"README.md": [
"yarn update-readme",
"git add README.md",
"git add packages/hooks/readme.md"
],
"*.{js,json,css,md,mdx,ts,tsx}": [
"prettier --write"
],
"src/**/*.{ts,tsx}": [
"eslint",
"jest --findRelatedTests"
]
},
"eslintConfig": {
"extends": [
"react-app"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"react-hooks"
],
"rules": {
"@typescript-eslint/no-angle-bracket-type-assertion": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"no-unused-vars": "off",
"no-console": "error"
},
"settings": {
"react": {
"version": "detect"
}
}
},
"dependencies": {
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"peerDependencies": {
"react": "^15.0.0 || ^16.0.0 || ^17.0.0"
},
"devDependencies": {
"@babel/cli": "^7.7.4",
"@babel/core": "^7.7.4",
"@babel/plugin-transform-runtime": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"@babel/preset-react": "^7.7.4",
"@babel/preset-typescript": "^7.7.4",
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@testing-library/dom": "^8.13.0",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.0.1",
"@testing-library/react-hooks": "^8.0.0",
"@testing-library/user-event": "^14.1.0",
"@types/jest": "^27.4.1",
"@types/react": "^18.0.5",
"@types/styled-components": "^5.0.0",
"@typescript-eslint/eslint-plugin": "^5.19.0",
"@typescript-eslint/parser": "^5.19.0",
"ansi-colors": "^4.0.1",
"babel-eslint": "^10.0.3",
"babel-jest": "^27.5.1",
"babel-loader": "^8.0.5",
"cross-env": "^7.0.0",
"eslint": "^8.13.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.17.0",
"eslint-plugin-react-hooks": "^4.0.4",
"execa": "^6.1.0",
"globby": "^11.0.4",
"husky": "^4.2.3",
"inquirer": "^8.2.2",
"jest": "^27.5.1",
"lerna": "^4.0.0",
"lint-staged": "^12.3.7",
"lodash": "^4.17.11",
"mkdirp": "^1.0.3",
"ora": "^6.1.0",
"prettier": "^2.6.2",
"react-test-renderer": "^18.0.0",
"rollup": "^1.27.8",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-node-resolve": "^5.1.0",
"typescript": "^4.0.3"
},
"workspaces": [
"packages/*"
]
}