-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
194 lines (194 loc) · 4.92 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
{
"author": {
"email": "[email protected]",
"name": "Richard Huang"
},
"babel": {
"plugins": [
"@babel/plugin-transform-runtime"
],
"presets": [
"@babel/env",
"@babel/flow",
"@babel/react"
]
},
"description": "Provides various data store hooks that allow functional components to share the application state within the same React Context or different React Context using persistent storage.",
"devDependencies": {
"@airbnb/node-memwatch": "^2.0.0",
"@babel/core": "^7.16.0",
"@babel/eslint-parser": "^7.16.0",
"@babel/plugin-transform-runtime": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"@babel/preset-flow": "^7.16.0",
"@babel/preset-react": "^7.16.0",
"@babel/register": "^7.16.0",
"@rollup/plugin-babel": "^5.3.0",
"@testing-library/react": "^12.1.2",
"benchmark": "^2.1.4",
"eslint": "^8.2.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^25.2.3",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-testing-library": "^5.0.0",
"flow-bin": "^0.163.0",
"flow-coverage-report": "^0.8.0",
"jest": "^27.3.1",
"jsdoc-babel": "^0.5.0",
"jsdoc-to-markdown": "^7.1.0",
"proxyquire": "^2.1.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"rollup": "^2.59.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-terser": "^7.0.2",
"tape": "^5.3.1",
"tsc-silent": "^1.2.1",
"typescript": "^4.4.4"
},
"eslintConfig": {
"env": {
"browser": true,
"jest/globals": true,
"node": true
},
"extends": [
"airbnb-base",
"plugin:flowtype/recommended",
"plugin:jest/recommended",
"plugin:react/recommended"
],
"overrides": [
{
"extends": [
"plugin:testing-library/react"
],
"files": [
"**/__tests__/**/*.js"
]
}
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"flowtype",
"import",
"jest",
"testing-library"
],
"rules": {
"import/extensions": [
"error",
"ignorePackages"
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"import/no-unresolved": [
"error",
{
"ignore": [
"react"
]
}
],
"no-bitwise": [
"error",
{
"allow": [
"~"
]
}
],
"no-param-reassign": [
"error",
{
"props": false
}
],
"no-underscore-dangle": [
"error",
{
"allow": [
"__test__"
]
}
]
},
"settings": {
"react": {
"version": "detect"
}
}
},
"homepage": "https://github.com/rickypc/react-store-context-hooks#readme",
"jest": {
"clearMocks": true,
"collectCoverage": true,
"collectCoverageFrom": [
"src/index.js"
],
"coverageDirectory": "./coverage/",
"errorOnDeprecated": true,
"logHeapUsage": true,
"modulePathIgnorePatterns": [
"<rootDir>/dist"
],
"testEnvironment": "jsdom",
"testRegex": "__tests__/.*.test.js$"
},
"keywords": [
"store",
"data store",
"store context",
"store provider",
"share state",
"across components",
"functional components",
"share application state",
"application state",
"across React components",
"context",
"hooks",
"share",
"components"
],
"license": "MPL-2.0",
"main": "index.cjs.js",
"module": "index.esm.js",
"name": "react-store-context-hooks",
"optionalDependencies": {
"@babel/standalone": "^7.16.2"
},
"peerDependencies": {
"react": ">=16.8.0"
},
"repository": {
"type": "git",
"url": "[email protected]:rickypc/react-store-context-hooks.git"
},
"runkitExampleFilename": "example.js",
"scripts": {
"build": "yarn build:docs; yarn build:bundles; yarn build:ts",
"build:bundles": "rollup -c",
"build:docs": "jsdoc2md -c .jsdoc.json -t .readme.hbs src/*.js > README.md",
"build:ts": "tsc-silent --project tsconfig.json --suppress @",
"test": "yarn test:lint; yarn test:flow; yarn test:unit; yarn test:bench; yarn test:leak",
"test:bench": "time find __benches__ -name '*.test.js' -type f -print0 | sort -z | xargs -0 -I{} node --require @babel/register {}",
"test:flow": "flow check; flow batch-coverage --strip-root .; flow-coverage-report -i src/*.js -t html",
"test:leak": "time find __leaks__ -name '*.test.js' -type f -print0 | sort -z | xargs -0 -I{} node --require @babel/register {}",
"test:lint": "eslint __*__/** src/*.js; exit 0",
"test:unit": "jest"
},
"version": "4.0.0"
}