-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc
83 lines (83 loc) · 2.18 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
{
"parser": "@babel/eslint-parser",
"plugins": ["@typescript-eslint"],
"env": {
"es6": true,
"browser": true
},
"extends": [
"airbnb",
"airbnb/hooks",
"eslint:recommended",
"plugin:react/recommended"
],
"ignorePatterns": "dist/**/*",
"rules": {
"object-curly-newline": ["error", {
"ImportDeclaration": "never"
}],
"init-declarations": ["error", "always"],
"prefer-destructuring": ["error", {
"VariableDeclarator": {
"array": true,
"object": true
},
"AssignmentExpression": {
"array": true,
"object": false
}
}, {
"enforceForRenamedProperties": true
}],
"no-unused-vars":"error",
"no-undefined": "off",
"no-empty-function": [
"error",
{
"allow": ["arrowFunctions"]
}
],
"prefer-named-capture-group": "error",
"no-underscore-dangle": "off",
"arrow-body-style": "off",
"comma-dangle": "off",
"no-implicit-coercion": "off",
"no-use-before-define": "error",
"import/no-named-default": "off",
"import/no-unresolved": "off",
"import/order": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/control-has-associated-label": "off",
"jsx-a11y/no-static-element-interactions": "off",
"no-console": "off",
"no-plusplus": "off",
"react-hooks/exhaustive-deps": "error",
"react/display-name": "error",
"react/forbid-prop-types": "off",
"react/jsx-sort-default-props": "error",
"react/jsx-curly-brace-presence": [
"error",
{
"props": "never",
"children": "ignore"
}
],
"react/jsx-filename-extension": "off",
"react/jsx-no-bind": "error",
"react/jsx-no-literals": [
"error",
{
"ignoreProps": true
}
],
"react/jsx-no-useless-fragment": "error",
"react/jsx-props-no-spreading": "off",
"react/jsx-sort-props": "off",
"react/no-multi-comp": "error",
"no-nested-ternary": "off",
"linebreak-style": 0,
"sort-imports": "off",
"space-infix-ops": "off"
}
}