|
1 | 1 | {
|
2 | 2 | "name": "react-use",
|
3 |
| - "version": "17.0.2", |
| 3 | + "version": "17.0.0", |
4 | 4 | "description": "Collection of React Hooks",
|
5 | 5 | "main": "lib/index.js",
|
6 | 6 | "module": "esm/index.js",
|
|
17 | 17 | "test:ssr": "jest --maxWorkers 2 --config ./jest.config.node.ts",
|
18 | 18 | "test:watch": "jest --watch",
|
19 | 19 | "test:coverage": "jest --coverage",
|
20 |
| - "lint": "eslint {src,tests}/**/*.{ts,tsx}", |
| 20 | + "lint": "eslint {src,tests,stories}/**/*.{ts,tsx}", |
21 | 21 | "lint:fix": "yarn lint --fix",
|
22 |
| - "lint:types": "tsc --noEmit ", |
23 |
| - "lint:prettier": "prettier --write src/**/**/*.{ts,tsx}", |
| 22 | + "lint:types": "tsc --noEmit", |
24 | 23 | "build:cjs": "tsc",
|
25 | 24 | "build:es": "tsc -m esNext --outDir esm",
|
26 | 25 | "build": "yarn build:cjs && yarn build:es",
|
|
33 | 32 | },
|
34 | 33 | "husky": {
|
35 | 34 | "hooks": {
|
36 |
| - "pre-commit": "yarn lint:types && lint-staged", |
| 35 | + "pre-commit": "lint-staged", |
37 | 36 | "pre-push": "yarn lint && yarn clean && yarn build && yarn test"
|
38 | 37 | }
|
39 | 38 | },
|
|
93 | 92 | "babel-loader": "8.2.2",
|
94 | 93 | "babel-plugin-dynamic-import-node": "2.3.3",
|
95 | 94 | "eslint": "7.19.0",
|
| 95 | + "eslint-config-prettier": "^7.2.0", |
96 | 96 | "eslint-config-react-app": "6.0.0",
|
97 | 97 | "eslint-plugin-flowtype": "5.2.0",
|
98 | 98 | "eslint-plugin-import": "2.22.1",
|
99 | 99 | "eslint-plugin-jsx-a11y": "6.4.1",
|
| 100 | + "eslint-plugin-prettier": "^3.3.1", |
100 | 101 | "eslint-plugin-react": "7.22.0",
|
101 | 102 | "eslint-plugin-react-hooks": "4.2.0",
|
102 | 103 | "fork-ts-checker-webpack-plugin": "6.1.0",
|
|
107 | 108 | "keyboardjs": "2.6.4",
|
108 | 109 | "lint-staged": "10.5.3",
|
109 | 110 | "markdown-loader": "6.0.0",
|
110 |
| - "prettier": "2.2.1", |
| 111 | + "prettier": "^2.2.1", |
111 | 112 | "raf-stub": "3.0.0",
|
112 | 113 | "react": "17.0.1",
|
113 | 114 | "react-dom": "17.0.1",
|
|
152 | 153 | "lint-staged": {
|
153 | 154 | "src/**/**/*.{ts,tsx}": [
|
154 | 155 | "eslint --fix",
|
155 |
| - "prettier --write", |
156 | 156 | "git add"
|
157 | 157 | ]
|
158 | 158 | },
|
|
0 commit comments