-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
executable file
·111 lines (111 loc) · 2.64 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
{
"parser": "babel-eslint",
"extends": ["airbnb"],
"plugins": ["react", "jsx-a11y", "react-native", "react-hooks"],
"rules": {
"react/prop-types": ["error", { "ignore": ["navigation"] }],
"import/no-unresolved": 0,
"no-return-assign": 0,
"padded-blocks": 0,
"max-len": ["error", 80],
"quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"object-curly-spacing": 0,
"new-cap": 0,
"no-underscore-dangle": 0,
"import/no-duplicates": 2,
"react/sort-comp": 0,
"react/no-array-index-key": 0,
"import/no-extraneous-dependencies": [
"error",
{
"packageDir": ["./", "./apps/mobile-app", "./packages/uxkit"]
}
],
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"jsx-a11y/img-has-alt": "off",
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"no-use-before-define": 0,
"react/forbid-prop-types": 0,
"react/require-default-props": 0,
"arrow-body-style": 0,
"arrow-parens": ["error", "as-needed"],
"func-names": ["error", "never"],
"import/prefer-default-export": 0,
"class-methods-use-this": 0,
// "space-before-function-paren": [
// "error",
// { "anonymous": "never", "named": "never", "asyncArrow": "never" }
// ],
"no-throw-literal": 0,
"no-undef": 0,
"no-confusing-arrow": 0,
"indent": 0,
"no-console": 0,
"no-mixed-operators": [
"error",
{
"groups": [["&", "|", "^", "~", "<<", ">>", ">>>"], ["&&", "||"]]
}
],
"no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true
}
],
"camelcase": "error",
"comma-dangle": [
2,
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}
],
"object-curly-newline": [
"error",
{ "ImportDeclaration": "always", "ExportDeclaration": "never" }
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"settings": {
"react": {
"version": "latest"
},
"flowtype": {
"onlyFilesWithFlowAnnotation": true
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"env": {
"react-native/react-native": true
},
"overrides": [
{
"files": ["*.js", "packages/*", "apps/*"],
"rules": {
"class-methods-use-this": "off"
}
}
]
}