-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
125 lines (118 loc) · 2.78 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
124
---
extends: "eslint:recommended"
parser: "babel-eslint"
env:
es6: true
jasmine: true
jest: true
node: true
plugins:
- import
- flowtype
rules:
brace-style: [2, "1tbs"]
class-methods-use-this: 2
default-case: 2
no-else-return: 2
guard-for-in: 2
no-return-await: 2
no-catch-shadow: 2
no-console: 0
no-undefined: 2
array-bracket-spacing: [2, "never"]
comma-spacing: 2
computed-property-spacing: 2
func-call-spacing: 2
func-style: [2, "declaration"]
key-spacing: 2
line-comment-position: 2
# ECMAScript 6+ rules
linebreak-style: 2
lines-around-comment: 2
max-len: [2, 100]
new-parens: 2
newline-after-var: 2
newline-before-return: 2
no-array-constructor: 2
no-bitwise: 2
no-continue: 2
no-lonely-if: 2
no-nested-ternary: 2
no-new-object: 2
no-trailing-spaces: 2
no-unneeded-ternary: 2
no-whitespace-before-property: 2
object-property-newline: 2
semi: 2
space-before-blocks: 2
space-in-parens: 2
space-infix-ops: 2
space-unary-ops: 2
spaced-comment: 2
arrow-body-style: 2
arrow-parens: [2, "always"]
arrow-spacing: 2
constructor-super: 2
generator-star-spacing: 2
no-class-assign: 2
no-confusing-arrow: 0
no-const-assign: 2
no-dupe-class-members: 2
no-duplicate-imports: 2
no-new-symbol: 2
no-this-before-super: 2
no-useless-computed-key: 2
no-useless-constructor: 2
no-useless-rename: 2
no-var: 2
object-shorthand: 2
prefer-arrow-callback: 2
prefer-const: 2
prefer-numeric-literals: 2
prefer-rest-params: 2
prefer-spread: 2
prefer-template: 2
require-yield: 2
rest-spread-spacing: 2
symbol-description: 2
template-curly-spacing: 2
yield-star-spacing: 2
no-multiple-empty-lines: [2,
max: 2
]
object-curly-spacing: [2, "always"]
quote-props: [2, "consistent-as-needed"]
quotes: [2, "single"]
space-before-function-paren: [2, {
anonymous: "always",
named: "never",
asyncArrow: "always"
}]
# eslint-plugin-import
import/no-unresolved: 2
import/named: 2
import/default: 2
import/namespace: 2
import/no-absolute-path: 2
import/no-dynamic-require: 2
import/no-webpack-loader-syntax: 2
import/export: 2
import/no-named-as-default: 2
import/no-named-as-default-member: 2
import/no-deprecated: 2
import/no-mutable-exports: 2
import/unambiguous: 2
import/no-commonjs: 2
import/no-amd: 2
import/first: 2
import/no-duplicates: 2
import/no-namespace: 2
import/order: [2, {"newlines-between": "always"}]
import/newline-after-import: 2
import/no-named-default: 2
#eslint-plugin-flowtype
flowtype/boolean-style: [2, boolean]
flowtype/define-flow-type: 2
flowtype/no-weak-types: [2, { Function: true, Object: false, any: true }]
flowtype/require-valid-file-annotation: [2, always]
flowtype/type-id-match: [2, "^([A-Z][a-z0-9]*)+Type$"]