-
Notifications
You must be signed in to change notification settings - Fork 196
/
.eslintrc.json
57 lines (57 loc) · 1.08 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
{
"env": {
"browser": true,
"jest": true,
"es6": true
},
"parser": "babel-eslint",
"extends": "airbnb",
"plugins": [
"react-native"
],
"globals": {
"node": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".ios.js",
".android.js"
]
}
}
},
"rules": {
"no-unused-vars": "off",
"no-underscore-dangle": "off",
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"linebreak-style": 0,
"react/jsx-filename-extension": [
"warn",
{
"extensions": [
".js",
".jsx",
".android.js",
".ios.js"
]
}
],
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": [ "hrefLeft", "hrefRight", "to" ],
"aspects": [ "noHref", "invalidHref", "preferButton" ]
}],
"jsx-a11y/no-noninteractive-element-interactions": [
"error",
{
"handlers": [
"onClick"
]
}
]
}
}