-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy patheslint.config.js
More file actions
53 lines (52 loc) · 1.09 KB
/
eslint.config.js
File metadata and controls
53 lines (52 loc) · 1.09 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
import loguxTsConfig from '@logux/eslint-config/ts'
/** @type {import('eslint').Linter.Config[]} */
export default [
{
ignores: ['**/errors.ts', 'coverage']
},
...loguxTsConfig,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'n/no-unsupported-features/node-builtins': [
'error',
{
ignores: ['fetch', 'import.meta.dirname', 'util.styleText']
}
]
}
},
{
files: ['human-formatter/index.js'],
rules: {
'no-invalid-this': 'off',
'perfectionist/sort-variable-declarations': 'off'
}
},
{
files: ['create-reporter/index.js'],
rules: {
'perfectionist/sort-objects': 'off'
}
},
{
files: ['server/index.js'],
rules: {
'n/global-require': 'off'
}
},
{
files: ['create-reporter/index.test.ts', 'server/types.ts'],
rules: {
'import/order': 'off'
}
},
{
files: ['test/**/*', '*/*.test.ts'],
rules: {
'@typescript-eslint/no-unsafe-function-type': 'off',
'@typescript-eslint/require-await': 'off',
'no-console': 'off'
}
}
]