This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy path.eslintrc.json
executable file
·74 lines (74 loc) · 1.73 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
{
"env": {
"browser": true,
"es6": true,
"node": true,
"react-native/react-native": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"extends": ["eslint:recommended", "plugin:react/recommended", "@react-native-community"],
"plugins": ["react-native", "react"],
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "detect",
"flowVersion": "0.53"
},
"propWrapperFunctions": [
"forbidExtraProps",
{
"property": "freeze",
"object": "Object"
},
{
"property": "myFavoriteWrapper"
}
],
"linkComponents": [
"Hyperlink",
{
"name": "Link",
"linkAttribute": "to"
}
]
},
"rules": {
"require-atomic-updates": "off",
"react/jsx-wrap-multilines": ["error", { "declaration": "ignore", "assignment": "ignore", "prop": "ignore" }],
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"react-native/no-inline-styles": "off",
"react-native/no-color-literals": "off",
"react-native/no-raw-text": "error",
"react/jsx-max-props-per-line": [2, { "maximum": 4, "when": "multiline" }],
"react/jsx-first-prop-new-line": [2, "multiline-multiprop"],
"max-len": [
2,
120,
4,
{
"ignoreUrls": true,
"ignoreStrings": true
}
],
"no-inline-comments": "off",
"prettier/prettier": "error",
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double"],
"semi": ["off", "never"]
}
}