-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
102 lines (102 loc) · 2.64 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"name": "jest-phabricator-report",
"version": "1.0.0",
"description": "phabricator unit test report for jest",
"main": "src/index.js",
"repository": "https://github.com/coursera/jest-phabricator-report",
"author": "Gago <[email protected]>",
"license": "MIT",
"engines": {
"node": ">6.10"
},
"lint-staged": {
"*.js": ["yarn format --write", "git add"]
},
"babel": {
"presets": [
"flow",
[
"env",
{
"targets": {
"node": "6.10"
},
"useBuiltIns": true
}
]
],
"plugins": ["transform-object-rest-spread", "source-map-support"]
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": "coursera",
"rules": {
"no-process-env": 0,
"import/no-dynamic-require": 0,
"no-console": 0,
"arrow-parens": [
0,
"as-needed",
{
"requireForBlockBody": true
}
]
},
"globals": {
"process": true
}
},
"eslintIgnore": ["coverage/*"],
"prettier": {
"printWidth": 120,
"arrowParens": "always",
"semi": true,
"bracketSpacing": true,
"jsxBracketSameLine": false,
"trailingComma": "es5",
"singleQuote": true,
"useTabs": false,
"tabWidth": 2
},
"scripts": {
"precommit": "lint-staged",
"format": "prettier-eslint --print-width=120",
"postinstall":
" which prettier 2>&1 > /dev/null && yarn format --write package.json || echo 'no prettier available for production'",
"test": "jest",
"transpile": "babel src --ignore 'src/__*' --source-maps inline --out-dir dist",
"build": "yarn lint && yarn flow && yarn transpile && yarn createPackageJSON && yarn copyLICENSE",
"copyLICENSE": "cp LICENSE dist/",
"createPackageJSON": "node createPackageJSON.js && yarn format --write dist/package.json",
"lint": "eslint --fix src/",
"flow": "flow"
},
"files": ["dist/*"],
"dependencies": {
"debug": "^3.1.0",
"es6-promisify": "^6.0.0",
"source-map-support": "^0.5.4"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^8.2.2",
"babel-jest": "^22.4.3",
"babel-plugin-source-map-support": "^2.0.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-flow": "^6.23.0",
"eslint": "^4.19.1",
"eslint-config-coursera": "^0.5.0",
"eslint-plugin-flowtype": "^2.46.1",
"flow-bin": "^0.68.0",
"husky": "^0.14.3",
"jest": "^22.4.2",
"lint-staged": "^7.0.1",
"prettier": "^1.11.1",
"prettier-eslint": "^8.8.1",
"prettier-eslint-cli": "^4.7.1"
}
}