This repository has been archived by the owner on Jun 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
134 lines (134 loc) · 3.47 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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"react-app",
"plugin:react-native/all"
],
"plugins": [
"react",
"react-native"
],
"env": {
"react-native/react-native": true
},
"globals": {
"__DEV__": false,
"require": false,
"XMLHttpRequest": false,
"FileReader": true,
"fetch": false
},
"settings": {
"import/resolver": {
"babel-module": {}
}
},
"rules": {
"array-bracket-spacing": ["error", "never"],
"arrow-parens": 2,
"arrow-spacing": ["error", {
"before": true,
"after": true
}],
"block-spacing": ["error", "always"],
"comma-dangle": ["error", "always-multiline"],
"import/first": "error",
"import/no-duplicates": "error",
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
"index",
"parent",
"sibling"
],
"pathGroups": [
{
"pattern": "types",
"group": "builtin",
"position": "before"
}
]
}
],
"indent": "off",
"jsx-quotes": ["error", "prefer-double"],
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true
}],
"keyword-spacing": ["error", {
"before": true,
"after": true,
"overrides": {
"return": {
"after": true
},
"throw": {
"after": true
},
"case": {
"after": true
}
}
}],
"no-multiple-empty-lines": ["error", {
"max": 2,
"maxEOF": 0
}],
"no-console": [2, {
"allow": [
"info",
"error"
]
}],
"no-trailing-spaces": ["error"],
"object-curly-spacing": ["error", "always"],
"prefer-const": ["error"],
"quotes": ["error", "single"],
"react/self-closing-comp": ["error", {
"component": true,
"html": true
}],
"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-native/no-raw-text": 0,
"react-hooks/exhaustive-deps": 0,
"semi": "off",
"space-before-blocks": "error",
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"eol-last": ["error", "always"],
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/ban-ts-ignore": 0,
"@typescript-eslint/prefer-interface": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-object-literal-type-assertion": 0,
"@typescript-eslint/no-parameter-properties": 0,
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/prefer-namespace-keyword": 0,
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/semi": ["error"],
"@typescript-eslint/explicit-module-boundary-types": [0],
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-redeclare": [0],
"import/no-anonymous-default-export": 0
}
}