-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathxo.config.js
More file actions
58 lines (56 loc) · 1.18 KB
/
xo.config.js
File metadata and controls
58 lines (56 loc) · 1.18 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
import globals from 'globals'
/** @type {import('xo').FlatXoConfig} */
const xoConfig = [
{
ignores: ['gems/', 'lang/'],
name: 'default',
prettier: true,
rules: {
'max-depth': 'off',
'no-bitwise': 'off',
'no-template-curly-in-string': 'off',
'unicorn/prefer-at': 'off',
'unicorn/prefer-string-raw': 'off',
'unicorn/prefer-string-replace-all': 'off'
},
space: true
},
{
languageOptions: {globals: globals.browser},
files: ['lib/get-oniguruma.default.js']
},
{
files: ['lang/*.js'],
rules: {
camelcase: 'off',
'unicorn/no-thenable': 'off'
}
},
{
files: ['lang/*.js', 'script/info.js'],
rules: {
'max-lines': 'off'
}
},
{
files: ['**/*.d.ts'],
rules: {
'@typescript-eslint/array-type': [
'error',
{
default: 'generic'
}
],
'@typescript-eslint/no-restricted-types': 'off',
'@typescript-eslint/consistent-type-definitions': ['error', 'interface']
}
},
{
files: ['script/**/*.js'],
rules: {
'no-await-in-loop': 'off',
'unicorn/prefer-top-level-await': 'off'
}
}
]
export default xoConfig