This repository has been archived by the owner on Jan 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
123 lines (120 loc) · 2.47 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"plugins": [
"flowtype",
"no-null",
"import"
],
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"impliedStrict": true
},
"parser": "babel-eslint",
"env": {
"node": true,
"es6": true
},
"root": true,
"extends": [
"eslint:recommended",
"plugin:flowtype/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": false
}
},
"rules": {
"flowtype/no-weak-types": "warn",
"flowtype/delimiter-dangle": [
"error",
"always-multiline"
],
"flowtype/no-dupe-keys": "off",
"flowtype/generic-spacing": "off",
"flowtype/no-primitive-constructor-types": "error",
"flowtype/object-type-delimiter": [
"error",
"comma"
],
"flowtype/semi": [
"error",
"always"
],
"flowtype/no-types-missing-file-annotation": "off",
"import/no-unresolved": "off",
"import/named": "off",
"import/no-absolute-path": "error",
"import/no-dynamic-require": "error",
"import/first": "error",
"import/no-duplicates": "error",
"no-null/no-null": "off",
"no-console": "off",
"no-unused-vars": ["warn", { "args": "none" }],
"no-empty": "off",
"no-redeclare": "off",
"no-implicit-coercion": "error",
"no-invalid-this": "off",
"no-self-compare": "error",
"require-await": "error",
"no-shadow": "error",
"no-shadow-restricted-names": "error",
"no-undef": "off",
"no-undef-init": "error",
"eqeqeq": "error",
"block-spacing": "error",
"camelcase": "error",
"comma-dangle": [
"error",
"always-multiline"
],
"comma-style": "error",
"eol-last": "error",
"key-spacing": "error",
"max-len": [
"warn",
140
],
"new-parens": "error",
"no-multiple-empty-lines": "error",
"no-plusplus": "error",
"no-trailing-spaces": "error",
"no-unneeded-ternary": "error",
"padded-blocks": ["error", "never"],
"object-curly-spacing": [
"error",
"always"
],
"operator-assignment": "error",
"quotes": [
"error",
"double",
{
"avoidEscape": false,
"allowTemplateLiterals": true
}
],
"semi": "error",
"semi-spacing": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"arrow-parens": "error",
"arrow-spacing": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-numeric-literals": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"indent": [
"error",
"tab",
{
"SwitchCase": 1,
"MemberExpression": "off"
}
]
}
}