-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.xo-config.json
79 lines (71 loc) · 1.91 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
{
"extends": "xo-react",
"envs": ["es2020", "browser"],
"space": true,
"semicolon": false,
"prettier": true,
"ignores": ["./next-env.d.ts", "./next.config.js"],
"overrides": [{
"files": "./*.config.js",
"rules": {
"unicorn/prefer-module": 0,
"@typescript-eslint/no-confusing-void-expression": 0
}
}],
"rules": {
"no-negated-condition": 0,
"sort-imports": ["error", {
"ignoreCase": true,
"ignoreDeclarationSort": true
}],
"import/extensions": 0,
"import/first": "error",
"import/no-unassigned-import": 0,
"import/newline-after-import": "error",
"import/order": ["error", {
"newlines-between": "ignore",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"groups": [
["builtin", "external"],
"internal",
"parent",
["sibling", "index"]
],
"pathGroups": [{
"pattern": "~*",
"group": "internal"
}, {
"pattern": "~*/**",
"group": "internal"
}]
}],
"node/file-extension-in-import": 0,
"node/no-unsupported-features/es-syntax": ["error", {
"ignores": [
"dynamicImport",
"modules"
]
}],
"unicorn/filename-case": 0,
"unicorn/no-array-reduce": 0,
"unicorn/no-unreadable-array-destructuring": 0,
"unicorn/no-process-exit": 0,
"unicorn/prefer-node-protocol": 0,
"react/react-in-jsx-scope": 0,
"react/prop-types": 0,
"react/state-in-constructor": 0,
"react/function-component-definition": [1, {
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}],
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/naming-convention": 0,
"@typescript-eslint/no-unnecessary-boolean-literal-compare": 0,
"@typescript-eslint/no-confusing-void-expression": ["error", {
"ignoreArrowShorthand": true
}]
}
}