Repository navigation
Expand file tree
/
Copy pathxo.config.js
More file actions
59 lines (57 loc) · 1.71 KB
/
Copy pathxo.config.js
File metadata and controls
59 lines (57 loc) · 1.71 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
57
58
59
/**
* @import {FlatXoConfig} from 'xo'
*/
/** @type {FlatXoConfig} */
const xoConfig = [
{
name: 'default',
prettier: 'compat',
rules: {
curly: 'off',
'import-x/order': 'off',
'jsdoc/check-indentation': 'off',
'jsdoc/check-line-alignment': 'off',
'jsdoc/reject-any-type': 'off',
'jsdoc/require-asterisk-prefix': 'off',
'jsdoc/valid-types': 'off',
'no-shadow': 'off',
'prefer-arrow-callback': 'off',
'prefer-object-spread': 'off',
'regexp/prefer-named-capture-group': 'off',
'require-unicode-regexp': 'off',
'unicorn/better-dom-traversing': 'off',
'unicorn/consistent-boolean-name': 'off',
'unicorn/no-array-sort': 'off',
'unicorn/prefer-at': 'off',
'unicorn/prefer-continue': 'off',
'unicorn/prefer-early-return': 'off',
'unicorn/prefer-includes-over-repeated-comparisons': 'off',
'unicorn/prefer-simple-condition-first': 'off',
'unicorn/prefer-ternary': 'off',
'unicorn/require-array-sort-compare': 'off',
'unicorn/single-line-block-comment-style': 'off'
},
space: true
},
// Wrong.
{ignores: ['**/*.md']},
{
files: ['package.json'],
rules: {
'package-json/no-orphan-types': 'off',
'package-json/require-engines': 'off',
'package-json/sort-files': 'off',
'package-json/sort-properties': 'off'
}
},
{
files: ['**/*.ts'],
rules: {
'@typescript-eslint/array-type': ['error', {default: 'generic'}],
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-restricted-types': 'off'
}
}
]
export default xoConfig