-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
108 lines (102 loc) · 2.32 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
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
{
"extends": [
"airbnb",
"plugin:flowtype/recommended",
"plugin:react/recommended",
"plugin:react-native/all",
"prettier",
"prettier/flowtype",
"prettier/react",
"prettier/standard"
],
"plugins": [
"react",
"react-native",
"prettier",
"flowtype"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ios.js", ".android.js"]
}
}
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"experimentalObjectRestSpread": true,
"classes": true,
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"jest": true,
"react-native/react-native": true
},
"rules": {
"react/jsx-filename-extension": [2, {
"extensions": [
".js",
".jsx",
".android.js",
".ios.js"
]
}],
"react/sort-comp": [2, {
"order": [
"static-methods",
"type-annotations",
"lifecycle",
"everything-else",
"/^on.+$/",
"/^render.+$/",
"render"
]
}],
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"react-native/no-inline-styles": 2,
"react-native/no-color-literals": 2,
"react/destructuring-assignment": [0, "never"],
"react/require-default-props": 0,
"react/default-props-match-prop-types": [2, {
"allowRequiredDefaults": true
}],
"react/jsx-one-expression-per-line": 0,
"lines-between-class-members": [2, "always", {
"exceptAfterSingleLine": true
}],
"no-use-before-define": 0,
"comma-dangle": [2, {
"objects": "always-multiline",
"arrays": "always-multiline",
"imports": "always-multiline",
"exports": "never",
"functions": "never"
}],
"no-unused-vars": [2, {
"varsIgnorePattern": "^React$",
"argsIgnorePattern": "^_"
}],
"object-curly-newline": [2, {
"consistent": true,
"minProperties": 10
}],
"function-paren-newline": [2, "consistent"],
"import/no-extraneous-dependencies": [2, {
"devDependencies": ["./gulp/*.js"]
}],
"import/no-unresolved": [2, {
"ignore": [".png$"]
}],
"max-len": ["error", {
"code": 80,
"ignoreUrls": true
}]
}
}