-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy path.xo-config.js
41 lines (41 loc) · 1 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
module.exports = {
prettier: true,
space: true,
extends: ['xo-lass'],
ignore: ['config.js'],
rules: {
'capitalized-comments': 'off',
'unicorn/catch-error-name': 'off',
'unicorn/require-post-message-target-origin': 'off',
'node/no-unsupported-features/node-builtins': [
'error',
{
ignores: ['events.once']
}
]
},
overrides: [
{
files: 'test/jobs/*.js',
rules: {
'unicorn/no-process-exit': 'off'
}
},
{
files: [ '*.ts', '**/*.ts' ],
parserOptions: {
project: 'types/tsconfig.json'
},
rules: {
'no-redeclare': 'warn',
'no-unused-vars': 'warn',
'@typescript-eslint/no-unsafe-assignment': 'warn',
'@typescript-eslint/no-unsafe-assignment': 'warn',
'@typescript-eslint/no-unsafe-call': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-empty-function': 'warn'
}
}
],
parser: '@typescript-eslint/parser'
};