|
22 | 22 | ], |
23 | 23 | "scripts": { |
24 | 24 | "test": "is-ci \"test:ci\" \"test:dev\"", |
25 | | - "test:dev": "npm run test:types && npm run test:eslint && jest --watch", |
26 | | - "test:ci": "npm run test:types && npm run test:eslint && jest", |
| 25 | + "test:dev": "npm run test:types && npm run test:format && npm run test:eslint && jest --watch", |
| 26 | + "test:ci": "npm run test:types && npm run test:format && npm run test:eslint && jest", |
27 | 27 | "test:coverage": "yarn test:ci; open coverage/lcov-report/index.html", |
| 28 | + "test:format": "yarn prettier --check", |
28 | 29 | "test:types": "tsc", |
29 | 30 | "test:eslint": "eslint --ext .ts,.tsx ./src", |
30 | 31 | "build": "yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:types", |
|
38 | 39 | "watch:umd": "rimraf ./dist && cross-env NODE_ENV=production rollup -w -c && rollup-plugin-visualizer stats-react.json", |
39 | 40 | "watch:types": "rimraf ./types && tsc --watch --project ./tsconfig.types.json && replace 'import type' 'import' ./types -r --silent && replace 'export type' 'export' ./types -r --silent", |
40 | 41 | "now-build": "yarn && cd www && yarn && yarn build", |
| 42 | + "prettier": "prettier \"{.,src,src/**,example/src,example/src/**,types}/*.{md,js,jsx,ts,tsx,json}\"", |
41 | 43 | "start": "yarn watch", |
42 | | - "format": "prettier {.,src,src/**,example/src,example/src/**,types}/*.{md,js,jsx,tsx,json} --write", |
| 44 | + "format": "yarn prettier --write", |
43 | 45 | "stats": "open ./stats.html" |
44 | 46 | }, |
45 | 47 | "files": [ |
|
108 | 110 | "eslint-plugin-standard": "^4.0.1", |
109 | 111 | "is-ci-cli": "^2.1.1", |
110 | 112 | "jest": "^26.0.1", |
111 | | - "prettier": "^2.0.5", |
| 113 | + "prettier": "2.2.1", |
112 | 114 | "react": "^16.13.0", |
113 | 115 | "react-dom": "^16.13.1", |
114 | 116 | "react-error-boundary": "^2.2.2", |
|
0 commit comments