-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc
52 lines (52 loc) · 1.52 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
{
"root": true,
"extends": [
"@react-native-community",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"react-native-wcandillon",
"prettier"
],
"rules": {
"no-plusplus": "off",
"yoda": ["error", "never", { "exceptRange": true }],
"no-undef": "off",
"no-unused-vars": "off",
"no-empty-pattern": "error",
"eqeqeq": ["error", "always", { "null": "never" }],
"no-shadow": "off",
"react/jsx-indent": ["error", "tab"],
"react/jsx-indent-props": ["error", "tab"],
"react/no-unstable-nested-components": ["error", { "allowAsProps": true }],
"react-hooks/exhaustive-deps": "error",
"react-native/no-inline-styles": "error",
"react-native/no-unused-styles": "error",
"import/no-default-export": "off",
"no-unsafe-optional-chaining": ["error", { "disallowArithmeticOperators": true }],
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/strict-boolean-expressions": [
"error",
{
"allowString": false,
"allowNumber": false,
"allowNullableObject": false
}
],
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
"@typescript-eslint/ban-ts-comment": "error"
},
"parserOptions": {
"project": ["tsconfig.json"]
}
}