|
10 | 10 | "js": "babel source -d lib -s", |
11 | 11 | "js:watch": "yarn js --watch", |
12 | 12 | "lint": "eslint --format=node_modules/eslint-formatter-pretty source stories *.js", |
13 | | - "prepare": "yarn clean && yarn build", |
| 13 | + "prepare": "yarn clean && yarn build && husky install", |
14 | 14 | "sass": "node 'scripts/prepare-sass-files-for-publishing.js'", |
15 | 15 | "sass:watch": "nodemon -e scss --watch source/themes --exec 'yarn sass'", |
16 | 16 | "storybook": "start-storybook -p 6543 -c storybook --ci", |
|
23 | 23 | "@tippyjs/react": "4.2.1", |
24 | 24 | "create-react-context": "0.2.2", |
25 | 25 | "fast-password-entropy": "1.1.1", |
26 | | - "filter-react-dom-props": "0.0.2", |
| 26 | + "filter-invalid-dom-props": "2.1.0", |
27 | 27 | "popper.js": "1.16.1", |
28 | 28 | "react-modal": "3.1.12", |
29 | 29 | "react-scrollbars-custom": "4.0.21" |
|
71 | 71 | "extract-text-webpack-plugin": "3.0.2", |
72 | 72 | "file-loader": "5.0.2", |
73 | 73 | "flow-bin": "0.134.0", |
| 74 | + "husky": "7.0.4", |
74 | 75 | "identity-obj-proxy": "3.0.0", |
75 | 76 | "jest": "25.1.0", |
76 | 77 | "jest-enzyme": "7.1.2", |
| 78 | + "lint-staged": "12.1.3", |
77 | 79 | "lodash": "4.17.19", |
78 | | - "node-sass": "4.13.1", |
| 80 | + "node-sass": "4.14.1", |
79 | 81 | "nodemon": "1.12.1", |
80 | 82 | "prettier": "2.0.5", |
81 | 83 | "prettier-eslint": "9.0.1", |
|
142 | 144 | "render prop", |
143 | 145 | "skins", |
144 | 146 | "themes" |
145 | | - ] |
| 147 | + ], |
| 148 | + "lint-staged": { |
| 149 | + "*.js": "eslint --cache --fix", |
| 150 | + "*.{js,css,md}": "prettier --write" |
| 151 | + }, |
| 152 | + "devEngines": { |
| 153 | + "node": ">=14.17.0", |
| 154 | + "yarn": "1.22.4" |
| 155 | + } |
146 | 156 | } |
0 commit comments