forked from breejs/bree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xo-config.js
48 lines (48 loc) · 1.23 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
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',
'unicorn/prefer-node-protocol': 'warn',
'unicorn/prefer-top-level-await': 'warn',
'unicorn/prefer-event-target': 'off',
'unicorn/no-empty-file': 'warn',
'unicorn/no-process-exit': 'warn',
'unicorn/prefer-logical-operator-over-ternary': 'warn'
},
overrides: [
{
files: '**/*.mjs',
parserOptions: {
sourceType: 'module'
}
},
{
files: 'test/jobs/*.js',
rules: {
'unicorn/no-process-exit': 'off'
}
},
{
files: ['**/*.d.ts'],
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/naming-convention': 'off',
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': 'off'
}
},
{
files: ['**/*.test-d.ts'],
rules: {
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-confusing-void-expression': 'off', // Conflicts with `expectError` assertion.
'@typescript-eslint/no-unsafe-assignment': 'off'
}
}
]
};