-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
109 lines (109 loc) · 3.45 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
{
"env": {
"browser": true,
"es2021": true
},
"settings": {
"react": {
"version": "detect"
}
},
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:react/recommended",
"standard-with-typescript",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"processor": "disable/disable",
"overrides": [
{
"files": ["**/styles.ts"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off"
}
},
{
"files": ["**/entities/**", "**/Formularios/**"],
"rules": {
"@typescript-eslint/no-unsafe-call": "off"
}
},
{
"files": ["**/hooks/**", "**/utils/**"],
"rules": {
"@typescript-eslint/strict-boolean-expressions": "off"
}
},
{
"files": ["**/*.js"],
"settings": {
"disable/plugins": [
"@typescript-eslint"
]
}
},
{
"files": ["**/test.js"],
"env": { "jest": true },
"plugins": ["jest"]
}
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": [
"react",
"react-hooks",
"@typescript-eslint",
"prettier",
"simple-import-sort",
"disable"
],
"rules": {
"camelcase": "warn",
"simple-import-sort/imports": ["warn", {
"groups": [
["reflect-metadata"],
["^react", "^expo", "^@(?!:database|entity|repository|components|hooks|screens)/?\\w"],
["^typeorm"],
["^@database", "^@entity/?\\w", "^@repository/?\\w"],
["^@helpers/?\\w", "^@validators/?\\w", "^@errors/?\\w"],
["^@utils/?\\w", "^@hooks/?\\w"],
["^@screens/?\\w","^@components/?\\w"],
["^\\u0000"],
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
["^.+\\.?(css)$"],
["./types"]
]
}],
"semi": "off",
"@typescript-eslint/semi": ["warn", "always"],
"@typescript-eslint/member-delimiter-style": ["warn", {
"multiline": { "delimiter": "semi", "requireLast": true },
"singleline": { "delimiter": "semi", "requireLast": false },
"multilineDetection": "brackets"
}],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/array-type": ["warn", {
"default": "generic",
"readonly": "generic"
}],
"@typescript-eslint/ban-types": ["error", {
"extendDefaults": true,
"types": { "Function": false }
}],
"@typescript-eslint/strict-boolean-expressions": ["warn", {
"allowNumber": true
}]
},
"ignorePatterns": ["jest.*.js", "*.config.js", "**/vendor/*"]
}