-
Notifications
You must be signed in to change notification settings - Fork 176
/
Copy path.xo-config.js
39 lines (39 loc) · 1.04 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
module.exports = {
prettier: true,
space: true,
extends: ['xo-lass'],
overrides: [
{
files: ['test/**/*.js'],
env: ['mocha']
}
],
rules: {
'array-callback-return': 'warn',
'func-names': 'warn',
'import/order': 'warn',
'n/no-deprecated-api': 'warn',
'n/prefer-global/process': 'warn',
'n/prefer-promises/fs': 'warn',
'new-cap': 'warn',
'no-bitwise': 'warn',
'no-implicit-coercion': 'warn',
'no-inner-declarations': 'warn',
'no-multi-assign': 'warn',
'no-redeclare': 'warn',
'no-return-assign': 'warn',
'no-unused-vars': 'warn',
'no-use-extend-native/no-use-extend-native': 'warn',
'no-useless-call': 'warn',
'no-var': 'warn',
'prefer-const': 'warn',
'prefer-rest-params': 'warn',
'prefer-spread': 'warn',
'unicorn/explicit-length-check': 'warn',
'unicorn/no-array-reduce': 'warn',
'unicorn/prefer-spread': 'warn',
'unicorn/prefer-node-protocol': 'off',
'unicorn/expiring-todo-comments': 'off',
'max-nested-callbacks': 'off'
}
};