-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
46 lines (46 loc) · 920 Bytes
/
.eslintrc.js
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
module.exports = {
"root": true,
"extends": [
"eslint-config-airbnb-base",
"plugin:flowtype/recommended",
"plugin:prettier/recommended",
],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": false,
"codeFrame": false
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
},
"env": {
"node": true
},
"rules": {
"flowtype/require-valid-file-annotation": [
"error",
"always",
{
"annotationStyle": "line"
}
],
"strict": "error",
"no-restricted-syntax": "off",
"max-len": [
"error",
120,
],
"consistent-return": "off",
"no-underscore-dangle": "off",
"class-methods-use-this": "off",
"import/no-named-as-default-member": "off",
"no-console": "error",
},
"plugins": [
"flowtype",
"prettier",
]
};