-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
122 lines (122 loc) · 3.28 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
{
"name": "@knightburton/react-hooks-toolkit",
"version": "1.1.2",
"description": "The most commonly used custom react hooks in one place.",
"homepage": "https://github.com/knightburton/react-hooks-toolkit#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/knightburton/react-hooks-toolkit.git"
},
"bugs": {
"url": "https://github.com/knightburton/react-hooks-toolkit/issues"
},
"author": "Imre Kiss",
"license": "MIT",
"private": false,
"keywords": [
"react",
"react-hooks",
"hooks",
"typescript",
"useDebounce",
"useFetch",
"useInterval",
"usePrevious",
"useTimeout"
],
"main": "dist/index.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"jsnext:main": "dist/index.es.js",
"source": "src/index.ts",
"files": [
"dist"
],
"engines": {
"node": ">=12",
"npm": ">=6"
},
"scripts": {
"start": "rollup -c -w",
"build": "npm run clean:dist && npm run prepare:build",
"clean:dist": "rm -rf dist",
"prepare:build": "rollup -c",
"jest": "jest --coverage",
"jest:watch": "jest --watch --coverage",
"lint": "eslint --ext .jsx,.js,.tsx,.ts src/",
"test": "npm run lint && npm run jest"
},
"peerDependencies": {
"react": ">=16.9.0"
},
"devDependencies": {
"@rollup/plugin-babel": "^6.0.0",
"@rollup/plugin-commonjs": "^23.0.0",
"@rollup/plugin-node-resolve": "^14.1.0",
"@rollup/plugin-url": "^7.0.0",
"@testing-library/jest-dom": "^5.13.0",
"@testing-library/react": "^11.2.7",
"@testing-library/react-hooks": "^6.0.0",
"@types/jest": "^26.0.23",
"@types/react": "^17.0.6",
"@typescript-eslint/eslint-plugin": "^4.24.0",
"@typescript-eslint/parser": "^4.24.0",
"eslint": "^7.26.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.23.2",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-jest-dom": "^3.9.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-testing-library": "^4.6.0",
"jest": "^26.6.3",
"jest-fetch-mock": "^3.0.3",
"prettier": "^2.7.1",
"react": "^17.0.2",
"react-test-renderer": "^17.0.2",
"rollup": "^2.79.1",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.34.1",
"ts-jest": "^26.5.6",
"ts-node": "^9.1.1",
"typescript": "^4.8.4"
},
"jest": {
"verbose": false,
"globals": {
"__DEV__": true
},
"automock": false,
"coverageReporters": [
"text"
],
"testEnvironment": "node",
"transform": {
"\\.(ts|tsx)$": "ts-jest"
},
"testRegex": "(/test/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"setupFilesAfterEnv": [
"<rootDir>/test/setupTests.ts"
],
"testPathIgnorePatterns": [
"<rootDir>/node_modules/",
"<rootDir>/dist/",
"<rootDir>/test/setupTests.ts"
],
"coveragePathIgnorePatterns": [
"<rootDir>/node_modules/",
"<rootDir>/dist/",
"<rootDir>/test/setupTests.ts"
]
}
}