|
1 | 1 | { |
2 | 2 | "name": "react-popper-tooltip", |
3 | | - "version": "2.9.1", |
| 3 | + "version": "2.10.0", |
4 | 4 | "description": "React tooltip library built around react-popper", |
5 | 5 | "homepage": "https://react-popper-tooltip.netlify.com", |
6 | 6 | "repository": { |
|
19 | 19 | ], |
20 | 20 | "scripts": { |
21 | 21 | "build": "rm -rf dist && rollup -c && cp src/styles.css dist && yarn tsc && rm -rf compiled", |
22 | | - "prepublishOnly": "yarn typecheck && yarn lint && yarn test && yarn build", |
| 22 | + "prepublishOnly": "yarn typecheck && yarn lint && yarn build && yarn test", |
23 | 23 | "docs": "docz dev", |
24 | 24 | "docs:build": "docz build", |
25 | 25 | "typecheck": "tsc --noEmit", |
26 | 26 | "lint": "eslint src/**/*.{ts,tsx}", |
27 | 27 | "test": "jest" |
28 | 28 | }, |
29 | | - "pre-commit": [ |
30 | | - "typecheck", |
31 | | - "lint", |
32 | | - "test" |
33 | | - ], |
| 29 | + "husky": { |
| 30 | + "hooks": { |
| 31 | + "pre-commit": "yarn typecheck && yarn build && yarn test && lint-staged" |
| 32 | + } |
| 33 | + }, |
| 34 | + "lint-staged": { |
| 35 | + "src/**/*.(ts|tsx)": [ |
| 36 | + "prettier --write", |
| 37 | + "yarn lint --fix" |
| 38 | + ], |
| 39 | + "*": [ |
| 40 | + "git add" |
| 41 | + ] |
| 42 | + }, |
34 | 43 | "keywords": [ |
35 | 44 | "react", |
36 | 45 | "tooltip", |
|
58 | 67 | "@babel/preset-react": "^7.6.3", |
59 | 68 | "@babel/preset-typescript": "^7.6.0", |
60 | 69 | "@testing-library/react": "^9.3.0", |
61 | | - "@types/jest": "^24.0.19", |
62 | | - "@types/react": "^16.9.9", |
63 | | - "@types/react-dom": "^16.9.2", |
64 | | - "@typescript-eslint/eslint-plugin": "^2.4.0", |
65 | | - "@typescript-eslint/parser": "^2.4.0", |
| 70 | + "@types/jest": "^24.0.20", |
| 71 | + "@types/react": "^16.9.11", |
| 72 | + "@types/react-dom": "^16.9.3", |
| 73 | + "@typescript-eslint/eslint-plugin": "^2.5.0", |
| 74 | + "@typescript-eslint/parser": "^2.5.0", |
66 | 75 | "docz": "^1.3.2", |
67 | 76 | "docz-plugin-css": "^0.11.0", |
68 | 77 | "docz-theme-default": "^1.2.0", |
69 | | - "eslint": "^6.5.1", |
| 78 | + "eslint": "^6.6.0", |
70 | 79 | "eslint-config-prettier": "^6.4.0", |
71 | 80 | "eslint-plugin-jsx-a11y": "^6.2.3", |
72 | 81 | "eslint-plugin-prettier": "^3.1.1", |
73 | 82 | "eslint-plugin-react": "^7.16.0", |
| 83 | + "husky": "^3.0.9", |
74 | 84 | "jest": "^24.9.0", |
75 | | - "pre-commit": "^1.2.2", |
| 85 | + "lint-staged": "^9.4.2", |
76 | 86 | "prettier": "^1.18.2", |
77 | | - "react": "^16.10.2", |
78 | | - "react-dom": "^16.10.2", |
| 87 | + "react": "^16.11.0", |
| 88 | + "react-dom": "^16.11.0", |
79 | 89 | "react-hot-loader": "^4.12.15", |
80 | | - "rollup": "^1.25.0", |
| 90 | + "rollup": "^1.25.2", |
81 | 91 | "rollup-plugin-babel": "^4.3.3", |
82 | 92 | "rollup-plugin-node-resolve": "^5.2.0", |
83 | 93 | "rollup-plugin-size-snapshot": "^0.10.0", |
|
0 commit comments