-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
60 lines (60 loc) · 1.37 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
{
"env": {
"react-native/react-native": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"extends": ["airbnb", "airbnb/hooks", "plugin:react-native/all", "prettier"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"sourceType": "module"
},
"settings": {
"import/resolver": {
"typescript": {
"directory": "./tsconfig.json"
}
}
},
"globals": {
"JSX": true
},
"rules": {
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
],
"react/function-component-definition": [
1,
{
"namedComponents": "arrow-function"
}
],
"react/react-in-jsx-scope": 0,
"react/style-prop-object": 0,
"import/no-extraneous-dependencies": 0,
"import/extensions": 0,
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": "warn",
"no-shadow": 0,
"@typescript-eslint/no-shadow": "error",
"import/prefer-default-export": 0,
"react/require-default-props": 0,
"arrow-body-style": ["warn", "as-needed"],
"import/order": [
"warn",
{
"groups": ["builtin", "external", "parent", "sibling", "index"],
"alphabetize": {
"order": "asc"
}
}
],
"react/jsx-props-no-spreading": 0
}
}