forked from airbnb/visx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
171 lines (171 loc) · 5.03 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
{
"name": "@vx/root",
"license": "MIT",
"version": "0.0.0",
"description": "Low-level visualization components",
"keywords": [
"react",
"d3",
"visualization",
"vx",
"charts"
],
"engines": {
"node": ">=10.15.0",
"yarn": ">=1.17.0"
},
"author": "@hshoff",
"private": true,
"scripts": {
"build": "yarn run babel && yarn run type:dts",
"build-one": "nimbus babel --clean --esm",
"babel": "yarn run babel:cjs && yarn run babel:esm",
"babel:cjs": "nimbus babel --clean --workspaces=\"@vx/!(demo)\"",
"babel:esm": "nimbus babel --clean --workspaces=\"@vx/!(demo)\" --esm",
"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",
"prettier": "nimbus prettier",
"precommit": "lint-staged",
"setup": "yarn run build",
"test": "yarn run jest",
"type:dts": "nimbus typescript --build --reference-workspaces",
"docs": "yarn run docs:gen && node ./scripts/docs/index.js",
"docs:gen": "lerna run docs",
"prepare-release": "git checkout master && git pull --rebase origin master && yarn run docs && lerna updated",
"release": "yarn run prepare-release && lerna publish --exact"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"yarn run format",
"git add"
]
},
"devDependencies": {
"@airbnb/config-babel": "^2.1.3",
"@airbnb/config-eslint": "^2.1.3",
"@airbnb/config-jest": "^2.1.3",
"@airbnb/config-prettier": "^2.0.4",
"@airbnb/config-typescript": "^2.1.2",
"@airbnb/nimbus": "^2.1.3",
"@types/enzyme": "^3.10.3",
"@types/jest": "^24.0.18",
"@types/jsdom": "^12.2.4",
"@types/react-test-renderer": "^16.9.0",
"coveralls": "^3.0.6",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"enzyme-to-json": "^3.4.0",
"fs-jetpack": "^1.3.0",
"husky": "^3.0.0",
"lerna": "^3.15.0",
"lint-staged": "^9.2.5",
"marked": "^0.7.0",
"raf": "^3.4.0",
"react": "^15.0.0-0 || ^16.0.0-0",
"react-docgen": "^2.21.0",
"react-dom": "^15.0.0-0 || ^16.0.0-0",
"react-test-renderer": "^16.8.6",
"regenerator-runtime": "^0.10.5"
},
"workspaces": [
"./packages/*"
],
"nimbus": {
"drivers": [
"babel",
"eslint",
"jest",
"prettier",
"typescript"
],
"settings": {
"library": true,
"react": true,
"next": true
},
"typescript": {
"compilerOptions": {
"emitDeclarationOnly": true
}
},
"jest": {
"coverageReporters": [
"json"
],
"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"
}
},
{
"files": "*.{js,jsx,ts,tsx}",
"rules": {
"no-useless-rename": "off",
"linebreak-style": "off",
"operator-linebreak": "off",
"no-use-before-define": "off",
"object-curly-newline": "off",
"arrow-parens": "off",
"consistent-return": "off",
"no-console": "off",
"no-restricted-syntax": "off",
"no-nested-ternary": "off",
"no-param-reassign": "warn",
"lines-between-class-members": "off",
"import/prefer-default-export": "off",
"promise/param-names": "off",
"react/sort-comp": "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/require-default-props": "off",
"react/forbid-prop-types": "off",
"react/destructuring-assignment": "off",
"react/no-array-index-key": "off",
"react/no-children-prop": "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/vx-demo/**",
"rules": {
"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"
}
}
]
}
}
}