forked from ambassify/react-avatar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
64 lines (64 loc) · 1.92 KB
/
.eslintrc.json
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
{
"root": true,
"parser": "babel-eslint",
"plugins": [ "react" ],
"env": {
"browser": true
},
"extends": "eslint:recommended",
"rules": {
"no-console": 2,
"no-debugger": 0,
"no-shadow": 2,
"no-use-before-define": 2,
"eqeqeq": 0,
"curly": 0,
"no-underscore-dangle": 0,
"quotes": [2, "single"],
"semi": [ 2, "always" ],
"space-unary-ops": 0,
"space-infix-ops": 2,
"indent": [ 2, 4 ],
"strict": 0,
"jsx-quotes": 1,
"no-multi-spaces": 2,
"no-trailing-spaces": 2,
"spaced-comment": [2, "always", { "block": { "exceptions": ["*"] } } ],
"no-lonely-if": 2,
"no-negated-condition": 2,
"no-multiple-empty-lines": 2,
"react/display-name": 1,
"new-parens": 2,
"new-cap": 2,
"eol-last": 2,
"no-const-assign": 2,
"consistent-this": [2, "self"],
"linebreak-style": [2, "unix"],
"max-nested-callbacks": [2, 3],
"no-class-assign": 2,
"no-dupe-class-members": 2,
"no-this-before-super": 2,
"prefer-const": 1,
"react/jsx-boolean-value": [2, "always"],
"react/jsx-closing-bracket-location": [2, { "location": "after-props" }],
"react/jsx-curly-spacing": 2,
"react/jsx-indent-props": [2, 4],
"react/jsx-max-props-per-line": [2, { "maximum": 4}],
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-unknown-property": 2,
"react/prop-types": 2,
"react/self-closing-comp": 2,
"react/sort-comp": 2,
"react/jsx-wrap-multilines": 2
},
"settings": {
"react": {
"version": "detect"
}
}
}