forked from soyguijarro/react-storage-hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
142 lines (142 loc) · 3.42 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
{
"name": "react-storage-hooks",
"version": "4.0.1",
"description": "React hooks for persistent state",
"keywords": [
"react",
"react-hooks",
"persistent",
"useState",
"useReducer",
"storage",
"localstorage",
"sessionstorage"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"lint": "eslint src/*.ts",
"fmt": "prettier --check *.md *.json src/*.ts",
"types": "tsd",
"test": "jest",
"test:watch": "npm test -- --watch",
"test:coverage": "npm test -- --coverage",
"test:staged": "npm test -- --findRelatedTests --bail",
"prebuild": "del dist",
"build": "tsc",
"build:watch": "npm run build -- --watch",
"size": "size-limit",
"precheck": "npm run build",
"check": "run-s lint fmt types test:coverage size",
"examples:setup": "cd examples && npm install && npm link ../.",
"examples:start": "cd examples && npm start",
"examples:watch": "run-p build:watch examples:start",
"prerelease": "npm run check",
"release": "git push --follow-tags origin master"
},
"files": [
"dist",
"dist/index.d.ts"
],
"author": "Ramón Guijarro <[email protected]>",
"license": "MIT",
"repository": "https://github.com/soyguijarro/react-storage-hooks",
"peerDependencies": {
"react": "^16.8.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"prettier": {
"singleQuote": true
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"react-hooks"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:react-app/recommended",
"prettier",
"prettier/@typescript-eslint"
],
"rules": {
"no-console": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"@typescript-eslint/explicit-function-return-type": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
},
"lint-staged": {
"*.{md,json}": "prettier --write",
"*.ts": [
"prettier --write",
"eslint --fix",
"npm run test:staged"
]
},
"jest": {
"moduleFileExtensions": [
"ts",
"js"
],
"preset": "ts-jest",
"testMatch": [
"**/src/tests/*.test.ts"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"<rootDir>/src/tests/"
],
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
}
},
"tsd": {
"directory": "src"
},
"size-limit": [
{
"limit": "700 B",
"path": "dist/index.js"
}
],
"devDependencies": {
"@size-limit/preset-small-lib": "^4.4.5",
"@testing-library/react-hooks": "^3.2.1",
"@types/jest": "^25.2.1",
"@types/react": "^16.9.34",
"@typescript-eslint/eslint-plugin": "^2.28.0",
"@typescript-eslint/parser": "^2.28.0",
"del-cli": "^3.0.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-react-app": "^6.2.2",
"eslint-plugin-react-hooks": "^3.0.0",
"husky": "^4.2.5",
"jest": "^25.3.0",
"lint-staged": "^10.1.5",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.4",
"react": "^16.13.1",
"react-test-renderer": "^16.13.1",
"size-limit": "^4.4.5",
"ts-jest": "^25.4.0",
"tsd": "^0.11.0",
"typescript": "^3.8.3"
}
}