-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
104 lines (104 loc) · 2.05 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
{
"env": {
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"plugins": [
"react"
],
"root": true,
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb"
],
"rules": {
"no-console": 1,
"eqeqeq": 1,
"no-unused-vars": 1,
"import/no-unresolved": 1,
"jsx-a11y/img-has-alt": 1,
"jsx-a11y/img-uses-alt": 1,
"no-undef": 0,
"no-param-reassign": 0,
"no-shadow": 0,
"quote-props": 1,
"react/jsx-first-prop-new-line": 0,
"react/jsx-indent": 0,
"react/jsx-no-bind": 1,
"react/no-multi-comp": 0,
"react/sort-comp": 0,
"react/prefer-stateless-function": 1,
"react/prop-types": 0,
"arrow-body-style": 1,
"array-bracket-spacing": 1,
"brace-style": [
2,
"1tbs",
{
"allowSingleLine": true
}
],
"camelcase": 2,
"comma-spacing": 0,
"comma-dangle": 0,
"comma-style": 2,
"default-case": 0,
"eol-last": 2,
"func-names": 2,
"func-style": [
0,
"declaration"
],
"indent": [
2,
2,
{
"SwitchCase": 1
}
],
"key-spacing": 1,
"linebreak-style": [
0,
"unix"
],
"max-len": 0,
"no-trailing-spaces": 1,
"object-shorthand": 1,
"object-curly-spacing": 1,
"one-var-declaration-per-line": 2,
"padded-blocks": 0,
"prefer-const": 1,
"prefer-spread": 1,
"prefer-template": 1,
"new-cap": 0,
"new-parens": 2,
"no-array-constructor": 2,
"no-lonely-if": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": 1,
"no-new-object": 2,
"no-restricted-syntax": 2,
"no-spaced-func": 2,
"no-underscore-dangle": 0,
"no-var": 1,
"react/jsx-closing-bracket-location": 0,
"react/jsx-space-before-closing": 1,
"semi": 1,
"space-before-blocks": [
2,
"always"
],
"space-before-function-paren": [
2,
"never"
],
"spaced-comment": 1,
},
"globals": {
"Promise": false,
"require": false,
"__DEV__": false
}
}