-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
.xo-config.js
91 lines (91 loc) · 1.99 KB
/
.xo-config.js
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
module.exports = {
prettier: true,
space: true,
nodeVersion: false,
extends: [
'xo-lass',
],
envs: [
'node',
'browser',
],
overrides: [
{
files: 'test/**/*.js',
envs: [
'mocha',
],
rules: {
'block-scoped-var': 'warn',
complexity: 'warn',
'default-case': 'warn',
eqeqeq: 'warn',
'func-name-matching': 'warn',
'func-names': 'warn',
'guard-for-in': 'warn',
'handle-callback-err': 'warn',
'import/no-extraneous-dependencies': 'warn',
'import/no-unassigned-import': 'warn',
'import/order': 'warn',
'max-nested-callbacks': 'warn',
'new-cap': 'warn',
'no-eq-null': 'warn',
'no-extend-native': 'warn',
'no-implicit-coercion': 'warn',
'no-multi-assign': 'warn',
'no-negated-condition': 'warn',
'no-prototype-builtins': 'warn',
'no-redeclare': 'warn',
'no-undef': 'warn',
'no-unused-expressions': 'warn',
'no-unused-vars': 'warn',
'no-use-extend-native/no-use-extend-native': 'warn',
'no-useless-escape': 'warn',
'no-var': 'warn',
'no-void': 'warn',
'node/no-deprecated-api': 'warn',
'prefer-rest-params': 'warn',
'prefer-spread': 'warn',
'unicorn/filename-case': 'warn',
'valid-jsdoc': 'warn',
'node/no-path-concat': 'warn',
'unicorn/no-empty-file': 'warn',
},
},
],
rules: {
'unicorn/prevent-abbreviations': [
'warn',
{
replacements: {
res: false,
args: false,
fn: false,
err: false,
e: false,
i: false,
},
},
],
'no-bitwise': 'warn',
'node/prefer-global/buffer': 'warn',
'node/prefer-global/process': 'warn',
'unicorn/no-new-array': 'warn',
'unicorn/no-this-assignment': 'warn',
'unicorn/prefer-spread': 'warn',
'unicorn/catch-error-name': 'warn',
'unicorn/prefer-code-point': 'warn',
'node/no-unsupported-features': [
'error',
{
version: 8,
ignores: [
'syntax',
],
},
],
'unicorn/prefer-optional-catch-binding': 'off',
'no-unused-vars': 'off'
},
globals: [],
};