-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
75 lines (75 loc) · 2.37 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
{
"env": {
"browser": true,
"node": true,
"es2021": true,
"react-native/react-native": true
},
"extends": ["plugin:react/recommended", "airbnb", "airbnb/hooks", "prettier"],
"overrides": [{ "files": ["*.jsx", "*.js"] }],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "react-native", "simple-import-sort"],
"rules": {
"no-plusplus": 0,
"no-console": 1,
"no-unreachable": 2,
"no-unused-vars": 2,
"no-undef": 0,
"no-use-before-define": 1,
"no-extra-semi": 1,
"no-restricted-syntax": "off",
"no-case-declarations": "off",
"no-unused-expressions": ["error", { "allowShortCircuit": true }],
"arrow-parens": 0,
"react/prop-types": 2,
"react/forbid-prop-types": 0,
"react/style-prop-object": 0,
"react/no-unescaped-entities": 0,
"react/jsx-space-before-closing": 0,
"react/jsx-no-target-blank": 0,
"react/jsx-tag-spacing": ["error", { "beforeSelfClosing": "always" }],
"react/destructuring-assignment": 0,
"react/function-component-definition": "off",
"react/jsx-props-no-spreading": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"jsx-a11y/no-static-element-interactions": 0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"import/extensions": 0,
"import/no-named-as-default": 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": [2, { "commonjs": true, "amd": true, "caseSensitive": false }],
"import/named": 2,
"import/namespace": 2,
"import/default": 2,
"simple-import-sort/exports": "error",
"simple-import-sort/imports": [
"error",
{
"groups": [
["^\\u0000"],
["^react", "@react", "^redux", "^prop-types", "^expo", "^formik", "^yup", "^@"],
["^native-base", "^@mui", "^styled-components"],
["^screens", "^components", "^shared", "^assets"],
["^.+.s?css$"],
["^[^.]"],
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$", "^\\.\\.(?!/?$)", "^\\.\\./?$"]
]
}
]
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src", "test"]
}
}
}
}