-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc
61 lines (45 loc) · 1.01 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
parser: babel-eslint
ecmaFeatures:
modules: true
jsx: true
env:
es6: true
browser: true
node: true
globals:
__TEST__: true
__DEV__: true
tape: true
ga: true
beopinion_t: true
plugins:
- react
# 0: off, 1: warning, 2: error
rules:
strict: [2, "global"]
# semicolons are useless
semi: [2, "never"]
max-len: [2, 80, 4]
quotes: [2, "double"]
# 2 spaces indentation
indent: [2, 2]
# trailing coma are cool for diff
comma-dangle: [2, "always-multiline"]
# enforce comma at eol (never before)
comma-style: [2, "last"]
no-underscore-dangle: 0
no-fallthrough: 0
camelcase: 0
no-use-before-define: 0
# eslint-plugin-react rules
react/no-multi-comp: 0
# react/prop-types: 2
react/wrap-multilines: 2
react/self-closing-comp: 2
# little bug with listener(() => this.setState(s))
react/no-did-mount-set-state: 0
react/no-did-update-set-state: 2
react/jsx-uses-react: 2
react/jsx-uses-vars: 2
# https://github.com/babel/babel-eslint/issues/72
no-unused-vars: 0