-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
116 lines (116 loc) 路 2.74 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"private": true,
"name": "calendar-todo",
"author": "Michael Hsu <evenchange4@gmail.com>",
"license": "MIT",
"scripts": {
"clean": "rm -rf {node_modules,docker-compose.yml} && rm -rf ./packages/*/node_modules && rm -rf ./packages/*/.DS_Store && rm -rf ./packages/*/*.log && rm -rf ./packages/*/.env",
"postinstall": "lerna bootstrap",
"test": "lerna run test",
"flow": "flow",
"flow-coverage": "flow-coverage-report",
"eslint": "eslint ./",
"format": "prettier --write 'packages/**/*.{js,json,md}' '*.{json,md,js}'",
"release": "lerna publish --conventional-commits --changelog-preset=angular"
},
"devDependencies": {
"babel-eslint": "8.2.6",
"codecov": "3.0.4",
"eslint": "5.3.0",
"eslint-config-airbnb": "17.0.0",
"eslint-config-prettier": "2.9.0",
"eslint-plugin-flowtype": "2.50.0",
"eslint-plugin-import": "2.13.0",
"eslint-plugin-jest": "21.18.0",
"eslint-plugin-jsx-a11y": "6.1.1",
"eslint-plugin-prettier": "2.6.2",
"eslint-plugin-react": "7.12.1",
"flow-bin": "0.78.0",
"flow-coverage-report": "0.5.0",
"husky": "0.14.3",
"lerna": "3.0.0-rc.0",
"lint-staged": "7.2.0",
"prettier": "1.14.0"
},
"prettier": {
"trailingComma": "all",
"singleQuote": true
},
"lint-staged": {
"*.{js,json,md}": [
"prettier --write",
"git add"
]
},
"flow-coverage-report": {
"concurrentFiles": 5,
"includeGlob": [
"packages/**/*.js"
],
"excludeGlob": [
"packages/*/node_modules/**",
"packages/*/lib/**",
"packages/*/.next/**",
"packages/*/coverage/**",
"packages/*/storybook-static/**"
],
"type": [
"text"
],
"threshold": 80
},
"eslintConfig": {
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:flowtype/recommended",
"plugin:jest/recommended",
"prettier",
"prettier/react",
"prettier/flowtype"
],
"plugins": [
"prettier",
"jest",
"flowtype"
],
"env": {
"jest/globals": true
},
"rules": {
"prettier/prettier": "error",
"import/no-named-as-default": 0,
"import/no-extraneous-dependencies": 0,
"react/require-default-props": 0,
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js"
]
}
],
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": [
"Link"
],
"specialLink": [
"route"
],
"aspects": [
"noHref",
"invalidHref",
"preferButton"
]
}
]
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}