-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc
40 lines (40 loc) · 884 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"plugins": ["flowtype", "prettier", "jest"],
"env": {
"node": true,
"es6": true,
"jest/globals": true
},
"rules": {
"no-duplicate-imports": "error",
"no-undef": "error",
"no-unused-vars": "error",
"no-else-return": "error",
"flowtype/define-flow-type": 1,
"flowtype/use-flow-type": 1,
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/valid-expect": "error",
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
"bracketSpacing": true,
"tabWidth": 2,
"printWidth": 100
}
]
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": false
}
}
}