-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
53 lines (53 loc) · 1.44 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
// Use this file as a starting point for your project's .eslintrc.
// Copy this file, and add rule overrides as needed.
{
"extends": [
"airbnb",
"plugin:flowtype/recommended"
],
"env": {
"browser": true,
"node": true
},
"parser": "babel-eslint",
"plugins": [
"flowtype"
],
"rules": {
"indent": ["error", 4],
"quotes": ["warn", "backtick"],
"no-var": 2,
"max-len": ["error", 120],
"strict": "off",
"eol-last": "off",
"key-spacing": "off",
"flowtype/no-types-missing-file-annotation": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"no-undef": "off",
"no-param-reassign": "off",
"comma-dangle": ["error", "never"],
"no-underscore-dangle": "off",
"no-unused-vars": ["warn"],
"no-restricted-syntax": "off",
"no-new": "off",
"no-plusplus": "off",
"no-extend-native": "warn",
"no-dynamic-require": "off",
"import/no-dynamic-require": "off",
"flowtype/define-flow-type": 1,
"flowtype/no-weak-types": [2, {
"any": true,
"Object": false,
"Function": false
}],
"flowtype/require-parameter-type": [2, {"excludeArrowFunctions": "expressionsOnly"}],
"flowtype/require-return-type": [2, "always", {"annotateUndefined": "never", "excludeArrowFunctions": "expressionsOnly"}],
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
}
}