-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc
73 lines (67 loc) · 1.82 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
{
env: {
browser: true,
es6: true,
node: true,
jest: true,
},
parserOptions: {
sourceType: "module",
ecmaVersion: 6,
ecmaFeatures: {
jsx: true,
}
},
parser: "babel-eslint",
plugins: [
"react",
"react-native",
],
extends: "eslint:recommended",
globals: {
__DEV__: true,
},
rules: {
quotes: [1, "single", "avoid-escape"],
jsx-quotes: [2, "prefer-single"],
no-constant-condition: 0,
no-extend-native: 0,
no-console: 0,
curly: 0,
no-alert: 0,
no-trailing-spaces: [2, { "skipBlankLines": true }],
comma-dangle: [2, "always-multiline"],
no-unused-expressions: 0,
no-underscore-dangle: 0,
no-dupe-keys: 2,
key-spacing: 2,
no-const-assign: 2,
prefer-const: 2,
object-shorthand: 2,
prefer-spread: 2,
prefer-template: 2,
prefer-arrow-callback: 2,
no-var: 2,
no-extra-bind: 2,
arrow-parens: 2,
arrow-spacing: 2,
brace-style: 2,
array-callback-return: 2,
keyword-spacing: 2,
newline-per-chained-call: [2, { "ignoreChainWithDepth": 4}],
no-new-symbol: 2,
no-self-assign: 2,
no-whitespace-before-property: 2,
"react/no-direct-mutation-state": 2,
"react/prefer-es6-class": 2,
"react/prop-types": [2, { "ignore": ["dispatch", "navigator", "children"] }],
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2,
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/jsx-no-literals": 2,
"react-native/no-unused-styles": 2,
}
}