This repository has been archived by the owner on Sep 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
executable file
·91 lines (86 loc) · 2.49 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
{
"env": {
"jest/globals": true,
"react-native/react-native": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"react",
"react-native",
"@typescript-eslint",
"jest"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/style",
"plugin:jest/recommended"
],
"rules": {
"camelcase": "error",
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"no-var": ["error"],
"linebreak-style": ["error", "unix"],
"indent": ["error", 2],
"quotes": ["error", "single"],
"no-empty-function": "error",
"no-unsafe-finally": "off",
"brace-style": ["error", "allman"],
"semi": ["error", "always"],
"prefer-arrow-callback": "error",
"no-console": ["warn"],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"computed-property-spacing": ["error", "never"],
"array-bracket-spacing": ["error", "always"],
"comma-spacing": ["error", { "after": true }],
"comma-dangle": ["error", "never"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"func-call-spacing": ["error", "never"],
"key-spacing": ["error", { "afterColon": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"@typescript-eslint/member-delimiter-style": [ 2, {
"multiline": {
"delimiter": "comma",
"requireLast": false
},
"singleline": {
"delimiter": "comma",
"requireLast": false
}
} ],
"@typescript-eslint/type-annotation-spacing": ["warn", {
"before": false,
"after": true,
"overrides": {
"arrow": {
"before": true,
"after": true
}
}
}],
"react/display-name": [ 0 ],
"react/jsx-curly-spacing": [ 2, "always" ],
"react/jsx-curly-brace-presence": [ 2, { "props": "always" } ],
"jsx-quotes": ["error", "prefer-single"],
"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": 2,
"react-native/no-single-element-style-arrays": 2
}
}