|
10 | 10 | "lint": "eslint src test stories --cache", |
11 | 11 | "lint:fix": "eslint --fix src test stories --cache", |
12 | 12 | "lint:watch": "esw --watch src test stories --cache", |
| 13 | + "lint": "eslint src test stories --cache", |
| 14 | + "lint:fix": "eslint --fix src test stories --cache", |
| 15 | + "lint:watch": "esw --watch src test stories --cache", |
| 16 | + "prettier": "prettier --write src/**/*.js test/**/*.js stories/**/*.js", |
| 17 | + "prettier:check": "prettier --list-different src/**/*.js test/**/*.js stories/**/*.js", |
13 | 18 | "flow": "flow", |
14 | 19 | "flow:coverage": "for file in src/**.js test/**.js; do echo $file; flow coverage $file; done", |
15 | 20 | "flow:watch": "flow-watch -e js,js.flow,flowconfig --ignore es/ --ignore node_modules/ --watch .flowconfig --watch src/ --watch test/", |
|
19 | 24 | "test:watch": "NODE_ENV=production BABEL_ENV=test mocha --watch $npm_package_config_mocha", |
20 | 25 | "codecov": "nyc report --reporter=text-lcov > coverage.lcov; codecov", |
21 | 26 | "commitmsg": "commitlint -e $GIT_PARAMS", |
22 | | - "precommit": "npm run lint && flow", |
| 27 | + "precommit": "npm run lint && npm run prettier:check && flow", |
23 | 28 | "prepush": "npm test", |
24 | 29 | "prepublishOnly": "npm run clean && npm run lint && flow && npm test && npm run build", |
25 | 30 | "open:coverage": "open coverage/lcov-report/index.html", |
|
104 | 109 | "jsdom-global": "^3.0.2", |
105 | 110 | "mocha": "^5.0.0", |
106 | 111 | "nyc": "^11.4.1", |
| 112 | + "prettier": "^1.15.1", |
| 113 | + "prettier-eslint": "^8.8.2", |
107 | 114 | "react": "^16.2.0", |
108 | 115 | "react-dom": "^16.2.0", |
109 | 116 | "rimraf": "^2.6.0", |
|
0 commit comments