-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
116 lines (116 loc) · 3.12 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
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
{
"env": {
"browser": true,
"es2024": true,
"react-native/react-native": true
},
"extends": [
"@react-native-community",
"@react-native",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:jsx-a11y/strict",
// "plugin:react-redux/all",
"plugin:react-perf/all",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:prettier/recommended",
"plugin:react-native/all"
],
"ignorePatterns": [
"node_modules",
".expo",
".expo-shared",
".vscode",
"*.config.*",
"assets",
"dist"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": { "jsx": true },
"ecmaVersion": "latest",
"project": true,
"sourceType": "module",
"tsconfigRootDir": "./",
"EXPERIMENTAL_useSourceOfProjectReferenceRedirect": true
},
"plugins": [
"react",
"@typescript-eslint",
"prefer-arrow-functions",
"react-perf",
"prettier",
"react-redux",
"jsx-a11y",
"simple-import-sort",
"react-native"
],
"root": true,
"rules": {
"@typescript-eslint/consistent-type-definitions": [2, "type"],
"@typescript-eslint/consistent-type-imports": [2],
"@typescript-eslint/naming-convention": [
2,
{
"format": ["PascalCase"],
"selector": ["typeLike"]
},
{
"format": ["PascalCase", "camelCase"],
"selector": ["variable"],
"types": ["function"]
},
{
"format": ["camelCase", "UPPER_CASE"],
"selector": ["variable"],
"types": ["array", "boolean", "number", "string"]
},
{
"format": null,
"modifiers": ["requiresQuotes"],
"selector": ["objectLiteralProperty"]
},
{ "format": ["camelCase"], "selector": ["parameter"] }
],
"@typescript-eslint/no-floating-promises": [0],
"@typescript-eslint/no-throw-literal": [0],
"no-console": [0],
"no-param-reassign": [2, { "props": false }],
"prefer-arrow-functions/prefer-arrow-functions": [2],
"prettier/prettier": [
2,
{
"arrowParens": "avoid",
"bracketSameLine": true,
"endOfLine": "auto",
"parser": "typescript",
"singleAttributePerLine": true,
"trailingComma": "es5"
}
],
"react-native/no-color-literals": [0],
"react-native/sort-styles": [0],
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"react/jsx-props-no-spreading": [0],
"react/require-default-props": [0],
"@typescript-eslint/no-use-before-define": [0],
"@typescript-eslint/no-unused-vars": [2, { "args": "none" }],
"@typescript-eslint/no-invalid-void-type": [0],
// "no-void": [2, { "allowAsStatement": true }],
"simple-import-sort/exports": [2],
"simple-import-sort/imports": [2]
},
"settings": { "react": { "version": "detect" } }
}