-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
108 lines (108 loc) · 2.61 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 10
},
"overrides": [
{
"files": [
"*.ts",
"*.tsx",
"*.js",
"*.jsx"
],
"parserOptions": {
"project": "tsconfig.json"
}
}
],
"env": {
"es6": true,
"browser": true,
"node": true
},
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:prettier/recommended"
],
"plugins": [
"@typescript-eslint/eslint-plugin"
],
"rules": {
"import/no-cycle": "off",
"import/no-default-export": "warn",
"import/prefer-default-export": "off",
"import/order": [
"error",
{
"groups": [
[
"builtin",
"external",
"internal"
]
]
}
],
"import/no-extraneous-dependencies": "off",
"import/no-named-as-default": "off",
"import/extensions": "off",
"no-console": "off",
"no-template-curly-in-string": "off",
"no-alert": "off",
"no-underscore-dangle": "off",
"no-plusplus": "off",
"no-param-reassign": "off",
"no-bitwise": "off",
"class-methods-use-this": "off",
"max-classes-per-file": "off",
"no-lonely-if": "off",
"no-else-return": "off",
"no-nested-ternary": "off",
"spaced-comment": "off",
"react/jsx-filename-extension": [
"error",
{
"extensions": [
".js",
".tsx"
]
}
],
"prefer-template": "off",
"prefer-destructuring": "off",
"prefer-object-spread": "off",
"arrow-body-style": "off",
"react/display-name": "error",
"react/react-in-jsx-scope": "off",
"react/jsx-key": "error",
"react/jsx-props-no-spreading": "off",
"react/no-array-index-key": "off",
"react/require-default-props": "off",
"react/sort-prop-types": "error",
"react/prop-types": "off",
"react/destructuring-assignment": "off",
"react/jsx-boolean-value": "off",
"react/self-closing-comp": "off",
"react/sort-comp": "off",
"react/jsx-curly-brace-presence": "off",
"react/function-component-definition": "off",
"react/no-unstable-nested-components": [
"error",
{
"allowAsProps": true
}
],
"react/no-unused-prop-types": "off",
"react-hooks/exhaustive-deps": "warn",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-ally/anchor-is-valid": "off",
"jsx-a11y/heading-has-content": "off",
"no-restricted-syntax": "off"
}
}