-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
102 lines (102 loc) · 2.15 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
{
"extends": "airbnb",
"parser": "@typescript-eslint/parser",
"plugins": ["jest"],
"rules": {
"arrow-body-style": "off",
"class-methods-use-this": "off",
"consistent-return": 1,
"function-paren-newline": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"import/prefer-default-export": "off",
"import/no-named-as-default": "off",
"max-len": [
1,
120
],
"no-else-return": 1,
"no-param-reassign": 0,
"no-underscore-dangle": "off",
"no-unused-expressions": "off",
"no-unused-vars": "off",
"jsx-quotes": [
"error",
"prefer-single"
],
"react/forbid-prop-types": "off",
"react/jsx-curly-brace-presence": {
"props": "always",
"children": "off"
},
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }],
"react/no-array-index-key": "off",
"react/prop-types": 1,
"react/jsx-one-expression-per-line": "off",
"react/no-unescaped-entities": "off",
"react/destructuring-assignment": 1,
"import/first": 1,
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": [
"Link"
],
"specialLink": [
"hrefLeft",
"hrefRight"
],
"aspects": [
"invalidHref",
"preferButton"
]
}
],
"jsx-a11y/accessible-emoji": "off"
},
"overrides": [
{
"files": [
"src/containers/**/*Container.jsx"
],
"rules": {
"react/prop-types": false
}
}
],
"globals": {
"Headers": true,
"document": true,
"window": true,
"navigator": true,
"fetch": true
},
"env": {
"jest/globals": true
},
"parserOptions": {
"sourceType": "module"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
],
"paths": [
"typings"
]
}
}
},
}