-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
61 lines (60 loc) · 1.63 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
{
"env": {
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["tsconfig.json"]
},
"plugins": [
"@typescript-eslint",
"react",
"react-native",
"react-hooks",
"prettier",
"etc"
],
"rules": {
"etc/no-commented-out-code": "warn",
"react/sort-comp": "error",
"no-return-assign": "error",
"arrow-parens": ["error", "always"],
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
],
"react/prop-types": "off",
"react-hooks/rules-of-hooks": "error",
"prefer-const": "warn",
"react/destructuring-assignment": "off",
"prettier/prettier": "error",
"no-unused-expressions": [
"error",
{ "allowShortCircuit": true, "allowTernary": true }
],
"no-undef": "error",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"react-native/no-unused-styles": "error",
"react-native/no-inline-styles": "off",
"react-native/no-color-literals": "error",
"react-native/no-raw-text": "error",
"react-native/no-single-element-style-arrays": "error",
"react-native/sort-styles": [
"warn",
"asc",
{ "ignoreClassNames": false, "ignoreStyleProperties": true }
]
}
}