forked from debricked/yarn
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
56 lines (56 loc) · 1.28 KB
/
.eslintrc.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
{
"extends": "eslint-config-fb-strict",
"env": {
"jest": true
},
"plugins": [
"flowtype",
"yarn-internal",
"prettier"
],
"rules": {
"yarn-internal/warn-language": "error",
"max-len": ["error", 120],
"prefer-arrow-callback": "off",
"flowtype/require-valid-file-annotation": ["error", "always"],
"flowtype/space-after-type-colon": ["error", "always"],
"flowtype/require-return-type": ["error", "always", {"excludeArrowFunctions": true}],
"require-await": "error",
"no-process-exit": "error",
"no-return-await": "error",
"sort-keys": "off",
"prettier/prettier": ["error", {
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false,
"printWidth": 120,
"parser": "flow"
}]
},
"overrides": [
{
"files": [
"__tests__/fixtures/**/*.js",
"bin/*.js",
"src/cli/index.js"
],
"rules": {
"no-console": "off"
}
},
{
"files": [
"src/util/generate-pnp-map-api.tpl.js"
],
"rules": {
"prettier/prettier": ["error", {
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": false,
"printWidth": 120,
"parser": "flow"
}]
}
}
]
}