forked from refined-github/refined-github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xo-config.json
94 lines (94 loc) · 1.9 KB
/
.xo-config.json
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
{
"envs": [
"browser"
],
"extends": "xo-react",
"globals": [
"browser"
],
"rules": {
"jsx-quotes": [
"error",
"prefer-double"
],
"no-alert": "off",
"no-warning-comments": "off",
"unicorn/no-nested-ternary": "off",
"unicorn/prefer-top-level-await": "off",
"unicorn/prefer-dom-node-dataset": "off",
"unicorn/expiring-todo-comments": ["warn", {
"allowWarningComments": false
}],
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-implicit-any-catch": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/consistent-type-imports": "off",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true
}
],
"n/prefer-global/process": "off",
"import/no-cycle": "off",
"import/no-unassigned-import": "off",
"import/prefer-default-export": "error",
"import/order": [
"error",
{
"groups": [
[
"builtin",
"external"
]
],
"newlines-between": "always-and-inside-groups"
}
],
"react/jsx-key": "off",
"react/function-component-definition": [
"error",
{
"namedComponents": "function-declaration"
}
]
},
"overrides": [
{
"files": [
"webpack.config.ts",
"build/*"
],
"rules": {
"@typescript-eslint/triple-slash-reference": "off",
"unicorn/prefer-module": "off"
}
},
{
"files": [
"**/*.js"
],
"rules": {
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/explicit-function-return-type": "off"
}
},
{
"files": [
"source/features/*"
],
"rules": {
"import/prefer-default-export": "off"
}
}
],
"settings": {
"react": {
"version": "16.13"
}
}
}