@samitouri / QOS-React-2 / commits / 4adad94eac

Add prettier option in scripts

Sebastian Markbage committed Mar 2, 2017 at 20:51 UTC 4adad94eac58f51b1fe1f4e11052c1247f80ca5c
2 files changed +55 -7
package.json
+3 -1
@@ -71,6 +71,7 @@
71 "merge-stream": "^1.0.0",
72 "object-assign": "^4.1.1",
73 "platform": "^1.1.0",
74 + "prettier": "^0.20.0",
75 "run-sequence": "^1.1.4",
76 "through2": "^2.0.0",
77 "tmp": "~0.0.28",
@@ -92,7 +93,8 @@
93 "lint": "grunt lint",
94 "postinstall": "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json",
95 "test": "jest",
95 - "flow": "flow"
96 + "flow": "flow",
97 + "prettier": "prettier --write --no-bracket-spacing --single-quote --trailing-comma es5 --print-width 100 \"src/**/!(third_party)/*.js\""
98 },
99 "jest": {
100 "modulePathIgnorePatterns": [
yarn.lock
+52 -6
@@ -240,6 +240,14 @@ ast-types@0.8.12:
240 version "0.8.12"
241 resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.8.12.tgz#a0d90e4351bb887716c83fd637ebf818af4adfcc"
242
243 +ast-types@0.8.18:
244 + version "0.8.18"
245 + resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.8.18.tgz#c8b98574898e8914e9d8de74b947564a9fe929af"
246 +
247 +ast-types@0.9.4:
248 + version "0.9.4"
249 + resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.9.4.tgz#410d1f81890aeb8e0a38621558ba5869ae53c91b"
250 +
251 ast-types@0.9.5:
252 version "0.9.5"
253 resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.9.5.tgz#1a660a09945dbceb1f9c9cbb715002617424e04a"
@@ -305,7 +313,7 @@ babel-cli@^6.6.5:
313 optionalDependencies:
314 chokidar "^1.6.1"
315
308 -babel-code-frame@^6.16.0, babel-code-frame@^6.22.0:
316 +babel-code-frame@6.22.0, babel-code-frame@^6.16.0, babel-code-frame@^6.22.0:
317 version "6.22.0"
318 resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.22.0.tgz#027620bee567a88c32561574e7fd0801d33118e4"
319 dependencies:
@@ -1215,7 +1223,7 @@ center-align@^0.1.1:
1223 align-text "^0.1.3"
1224 lazy-cache "^1.0.3"
1225
1218 -chalk@*, chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:
1226 +chalk@*, chalk@1.1.3, chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:
1227 version "1.1.3"
1228 resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
1229 dependencies:
@@ -1318,7 +1326,7 @@ color-name@^1.1.1:
1326 version "1.1.1"
1327 resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.1.tgz#4b1415304cf50028ea81643643bd82ea05803689"
1328
1321 -colors@~0.6.2:
1329 +colors@>=0.6.2, colors@~0.6.2:
1330 version "0.6.2"
1331 resolved "https://registry.yarnpkg.com/colors/-/colors-0.6.2.tgz#2423fe6678ac0c5dae8852e5d0e5be08c997abcc"
1332
@@ -1959,7 +1967,7 @@ estraverse@~4.1.0:
1967 version "4.1.1"
1968 resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.1.1.tgz#f6caca728933a850ef90661d0e17982ba47111a2"
1969
1962 -esutils@^2.0.0, esutils@^2.0.2:
1970 +esutils@2.0.2, esutils@^2.0.0, esutils@^2.0.2:
1971 version "2.0.2"
1972 resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b"
1973
@@ -2206,6 +2214,14 @@ flow-bin@^0.37.0:
2214 version "0.37.4"
2215 resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.37.4.tgz#3d8da2ef746e80e730d166e09040f4198969b76b"
2216
2217 +flow-parser@0.40.0:
2218 + version "0.40.0"
2219 + resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.40.0.tgz#b3444742189093323c4319c4fe9d35391f46bcbc"
2220 + dependencies:
2221 + ast-types "0.8.18"
2222 + colors ">=0.6.2"
2223 + minimist ">=0.2.0"
2224 +
2225 for-in@^0.1.5:
2226 version "0.1.6"
2227 resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.6.tgz#c9f96e89bfad18a545af5ec3ed352a1d9e5b4dc8"
@@ -2309,6 +2325,10 @@ get-caller-file@^1.0.1:
2325 version "1.0.2"
2326 resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5"
2327
2328 +get-stdin@5.0.1:
2329 + version "5.0.1"
2330 + resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-5.0.1.tgz#122e161591e21ff4c52530305693f20e6393a398"
2331 +
2332 get-stdin@^4.0.1:
2333 version "4.0.1"
2334 resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe"
@@ -2381,6 +2401,17 @@ glob2base@^0.0.12:
2401 dependencies:
2402 find-index "^0.1.1"
2403
2404 +glob@7.1.1, glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.0:
2405 + version "7.1.1"
2406 + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8"
2407 + dependencies:
2408 + fs.realpath "^1.0.0"
2409 + inflight "^1.0.4"
2410 + inherits "2"
2411 + minimatch "^3.0.2"
2412 + once "^1.3.0"
2413 + path-is-absolute "^1.0.0"
2414 +
2415 glob@^4.3.1:
2416 version "4.5.3"
2417 resolved "https://registry.yarnpkg.com/glob/-/glob-4.5.3.tgz#c6cb73d3226c1efef04de3c56d012f03377ee15f"
@@ -3354,7 +3385,7 @@ jest-util@^19.0.1:
3385 leven "^2.0.0"
3386 mkdirp "^0.5.1"
3387
3357 -jest-validate@^19.0.0:
3388 +jest-validate@19.0.0, jest-validate@^19.0.0:
3389 version "19.0.0"
3390 resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-19.0.0.tgz#8c6318a20ecfeaba0ba5378bfbb8277abded4173"
3391 dependencies:
@@ -3823,7 +3854,7 @@ minimist@0.0.8, minimist@~0.0.1:
3854 version "0.0.8"
3855 resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
3856
3826 -minimist@1.2.0, minimist@^1.1.0, minimist@^1.1.1, minimist@^1.2.0:
3857 +minimist@1.2.0, minimist@>=0.2.0, minimist@^1.1.0, minimist@^1.1.1, minimist@^1.2.0:
3858 version "1.2.0"
3859 resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
3860
@@ -4218,6 +4249,21 @@ preserve@^0.2.0:
4249 version "0.2.0"
4250 resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
4251
4252 +prettier@^0.20.0:
4253 + version "0.20.0"
4254 + resolved "https://registry.yarnpkg.com/prettier/-/prettier-0.20.0.tgz#9cae8d4c0043dc3b37c633c39aaebd82939423f1"
4255 + dependencies:
4256 + ast-types "0.9.4"
4257 + babel-code-frame "6.22.0"
4258 + babylon "6.15.0"
4259 + chalk "1.1.3"
4260 + esutils "2.0.2"
4261 + flow-parser "0.40.0"
4262 + get-stdin "5.0.1"
4263 + glob "7.1.1"
4264 + jest-validate "19.0.0"
4265 + minimist "1.2.0"
4266 +
4267 pretty-format@^19.0.0:
4268 version "19.0.0"
4269 resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-19.0.0.tgz#56530d32acb98a3fa4851c4e2b9d37b420684c84"