forked from airbnb/visx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
237 lines (237 loc) · 6.95 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
{
"name": "@visx/root",
"license": "MIT",
"version": "0.0.0",
"description": "Low-level visualization components",
"keywords": [
"react",
"d3",
"visualization",
"visx",
"charts"
],
"engines": {
"node": ">=10.15.0",
"yarn": ">=1.17.0"
},
"contributors": [
{
"name": "Harrison Shoff",
"url": "https://github.com/hshoff"
},
{
"name": "Chris Williams",
"url": "https://github.com/williaster"
},
{
"name": "Krist Wongsuphasawat",
"url": "https://github.com/kristw"
}
],
"private": true,
"scripts": {
"babel": "yarn run babel:cjs && yarn run babel:esm",
"babel:cjs": "nimbus babel --clean --workspaces=\"@visx/!(demo)\"",
"babel:esm": "nimbus babel --clean --workspaces=\"@visx/!(demo)\" --esm",
"build": "yarn run babel && yarn run type",
"build:sizes": "yarn run ts ./scripts/computeBuildSizes.ts",
"build:release": "yarn run ts ./scripts/performRelease/index.ts",
"build:workspaces": "nimbus babel --clean",
"dev:demo": "yarn workspace @visx/demo dev",
"check:sizes": "yarn run ts ./scripts/compareBuildSizes.ts",
"clean": "rm -rf ./packages/**/{lib,esm}",
"format": "yarn run prettier --write",
"jest": "NODE_ENV=test nimbus jest --coverage --verbose",
"lint": "nimbus eslint",
"lint:fix": "yarn run lint --fix",
"prepare-release": "git checkout master && git pull --rebase origin master && lerna updated",
"prettier": "nimbus prettier",
"release": "yarn run prepare-release && lerna publish --exact",
"setup": "yarn run build",
"test": "yarn run jest",
"test:watch": "yarn run jest --watch",
"ts": "ts-node --project ./tsconfig.node.json",
"type": "nimbus typescript --build --reference-workspaces",
"type:workspaces": "nimbus typescript --build"
},
"devDependencies": {
"@airbnb/config-babel": "^3.1.0",
"@airbnb/config-eslint": "^3.1.0",
"@airbnb/config-jest": "^3.0.2",
"@airbnb/config-prettier": "^3.1.0",
"@airbnb/config-typescript": "^3.0.1",
"@airbnb/nimbus": "^3.1.4",
"@octokit/rest": "18.1.0",
"@types/enzyme": "^3.10.3",
"@types/jest": "^24.0.18",
"@types/jsdom": "^12.2.4",
"@types/node-fetch": "1.6.9",
"@types/react-test-renderer": "^18.0.0",
"@types/webpack": "^4.41.17",
"@testing-library/jest-dom": "^5.9.0",
"@testing-library/react": "^13.1.0",
"@testing-library/react-hooks": "^8.0.0",
"@testing-library/user-event": "^11.0.1",
"chalk": "4.1.0",
"coveralls": "^3.0.6",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"enzyme-to-json": "^3.4.0",
"eslint-plugin-import": "^2.22.1",
"fast-glob": "3.2.5",
"filesize": "6.1.0",
"fs-jetpack": "^1.3.0",
"husky": "^3.0.0",
"jest-mock-console": "^1.0.1",
"lerna": "^3.22.0",
"marked": "^0.7.0",
"node-fetch": "2.6.1",
"raf": "^3.4.0",
"react": "^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0",
"react-dom": "^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0",
"react-test-renderer": "^18.0.0",
"regenerator-runtime": "^0.10.5",
"timezone-mock": "^1.1.0",
"ts-node": "9.1.1"
},
"workspaces": [
"./packages/*"
],
"resolutions": {
"handlebars": "4.5.3"
},
"nimbus": {
"drivers": [
"babel",
"eslint",
"jest",
"prettier",
"typescript"
],
"settings": {
"library": true,
"react": true,
"next": true
},
"babel": {
"plugins": [
[
"@babel/plugin-proposal-private-methods",
{
"loose": false
}
]
]
},
"typescript": {
"compilerOptions": {
"emitDeclarationOnly": true
}
},
"jest": {
"coverageReporters": [
"json"
],
"collectCoverageFrom": [
"packages/src/**/*.{ts,tsx}",
"!node_modules/**",
"!packages/**/esm/**",
"!packages/**/lib/**",
"!packages/**/node_modules/**",
"!packages/visx-demo/**",
"!packages/visx-visx/**"
],
"testPathIgnorePatterns": [
"<rootDir>/packages/visx-demo",
"<rootDir>/packages/visx-visx"
],
"coverageThreshold": {
"global": {
"branches": 0,
"functions": 0,
"lines": 0,
"statements": 0
}
},
"setupFilesAfterEnv": [
"@airbnb/config-jest/enzyme"
]
},
"eslint": {
"overrides": [
{
"files": "*.test.{js,jsx,ts,tsx}",
"rules": {
"import/no-extraneous-dependencies": "off",
"jest/require-to-throw-message": "off"
}
},
{
"files": "*.{js,jsx,ts,tsx}",
"rules": {
"arrow-parens": "off",
"consistent-return": "off",
"import/prefer-default-export": "off",
"linebreak-style": "off",
"lines-between-class-members": "off",
"no-console": "off",
"no-nested-ternary": "off",
"no-param-reassign": "warn",
"no-restricted-syntax": "off",
"no-use-before-define": "off",
"no-useless-rename": "off",
"object-curly-newline": "off",
"operator-linebreak": "off",
"promise/param-names": "off",
"react/destructuring-assignment": "off",
"react/forbid-prop-types": "off",
"react/jsx-curly-brace-presence": "off",
"react/jsx-filename-extension": "off",
"react/jsx-no-literals": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-sort-default-props": "off",
"react/jsx-sort-props": "off",
"react/no-array-index-key": "off",
"react/no-children-prop": "off",
"react/require-default-props": "off",
"react/sort-comp": "off",
"react/sort-prop-types": "off",
"unicorn/catch-error-name": "off",
"unicorn/no-fn-reference-in-iterator": "off",
"unicorn/prefer-node-append": "off"
}
},
{
"files": "./packages/visx-demo/**",
"rules": {
"@typescript-eslint/no-explicit-any": [
"warn",
{
"fixToUnknown": false
}
],
"import/no-unresolved": [
"error",
{
"ignore": [
"^!!raw-loader!.*"
]
}
],
"import/no-webpack-loader-syntax": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/no-onchange": "off",
"no-alert": "off",
"no-param-reassign": "off",
"react/button-has-type": "off",
"react/no-danger": "off",
"react/no-unescaped-entities": "off",
"react/prop-types": "off",
"react/state-in-constructor": "off"
}
}
]
}
}
}