-
-
Notifications
You must be signed in to change notification settings - Fork 920
Expand file tree
/
Copy pathxo.config.js
More file actions
56 lines (54 loc) · 1.59 KB
/
Copy pathxo.config.js
File metadata and controls
56 lines (54 loc) · 1.59 KB
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
import react from 'eslint-plugin-react'
import globals from 'globals'
/** @type {import('xo').FlatXoConfig} */
const xoConfig = [
// Cast because xo does not deal with `exactOptionalPropertyTypes` properly.
/** @type {import('xo').XoConfigItem} */ (
/** @type {unknown} */ (react.configs.flat['jsx-runtime'])
),
{
languageOptions: {globals: {...globals.browser, ...globals.node}},
name: 'default',
prettier: 'compat',
rules: {
complexity: 'off',
// Wrong about self.
'import-x/order': 'off',
// Ugly.
'jsdoc/check-indentation': 'off',
// Wrong.
'jsdoc/check-line-alignment': 'off',
// Wrong about JSX pragmas.
'jsdoc/no-bad-blocks': 'off',
// Incorrect.
'jsdoc/reject-function-type': 'off',
// Terrible.
'jsdoc/require-asterisk-prefix': 'off',
// Ugly.
'no-shadow': 'off',
// Gross.
'prefer-destructuring': 'off',
// Verbose.
'regexp/prefer-named-capture-group': 'off',
// Not supported.
'require-unicode-regexp': 'off',
// Bad.
'unicorn/consistent-boolean-name': 'off',
// Not supported yet.
'unicorn/no-array-sort': 'off',
// Horrible.
'unicorn/prefer-continue': 'off',
// Ugly.
'unicorn/prefer-early-return': 'off',
// Wrong about test cases.
'unicorn/prefer-https': 'off',
// Not good.
'unicorn/prefer-promise-with-resolvers': 'off',
// Bad.
'unicorn/require-array-sort-compare': 'off'
},
space: true
},
{rules: {'prefer-arrow-callback': 'off'}}
]
export default xoConfig