forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
42 lines (42 loc) · 990 Bytes
/
.eslintrc
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
{
"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"
}
}
]
}