-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
131 lines (131 loc) · 3.25 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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"extends": [
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
},
"ecmaVersion": 2019,
"sourceType": "module",
"useJSXTextNode": true
},
"ignorePatterns": ["babel.config.js", "metro.config.js", ".eslintrc.js"],
"plugins": [
"@typescript-eslint",
"import",
"jsx-a11y",
"prettier",
"react-hooks",
"simple-import-sort"
],
"rules": {
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
],
"@typescript-eslint/no-var-requires": "off",
"import/first": "warn",
"import/newline-after-import": "warn",
"import/no-duplicates": "warn",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"import/order": "warn",
"import/extensions": "off",
"jsx-a11y/accessible-emoji": "warn",
"jsx-a11y/anchor-has-content": "warn",
"jsx-a11y/label-has-associated-control": "off",
"no-param-reassign": [
"error",
{
"props": false
}
],
"no-shadow": "off",
"no-template-curly-in-string": "off",
"no-unused-expressions": "off",
"no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
],
"prettier/prettier": "warn",
"react-hooks/exhaustive-deps": "off",
"react-hooks/rules-of-hooks": "error",
"react/button-has-type": "warn",
"react/destructuring-assignment": "warn",
"react/display-name": "off",
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function"
}
],
"react/jsx-filename-extension": [
"warn",
{
"extensions": [".js", ".jsx", "md", "mdx", ".ts", ".tsx"]
}
],
"react/jsx-fragments": "off",
"react/jsx-indent": "off",
"react/jsx-key": "warn",
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-sort-default-props": [
"error",
{
"ignoreCase": false
}
],
"react/jsx-sort-props": [
"error",
{
"callbacksLast": true,
"ignoreCase": false,
"noSortAlphabetically": false,
"reservedFirst": true,
"shorthandFirst": true,
"shorthandLast": false
}
],
"react/jsx-uses-react": "off",
"react/jsx-wrap-multilines": "off",
"react/no-children-prop": "warn",
"react/no-danger": "off",
"react/no-unescaped-entities": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", "md", "mdx", ".ts", ".tsx"]
}
},
"react": {
"version": "detect"
}
}
}