-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc
More file actions
30 lines (30 loc) · 666 Bytes
/
Copy path.eslintrc
File metadata and controls
30 lines (30 loc) · 666 Bytes
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
{
"extends": ["airbnb", "plugin:react-native/all"],
"parser": "babel-eslint",
"plugins": [
"react-native"
],
"rules": {
"react/jsx-filename-extension": [0],
"no-multiple-empty-lines": [ 2, { "max": 1, "maxEOF": 1 } ],
"react/sort-comp": [
2,
{
"order": [
"type-annotations",
"props",
"context",
"state",
"defaultProps",
"constructor",
"lifecycle",
"/^on.+$/",
"/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/",
"everything-else",
"/^render.+$/",
"render"
]
}
]
}
}