-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
76 lines (74 loc) · 1.6 KB
/
.eslintrc.cjs
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
/**
* @file ESLint Configuration - Root
* @module config/eslint
* @see https://eslint.org/docs/user-guide/configuring
*/
/**
* @type {import('eslint').Linter.Config}
* @const config - ESLint configuration object
*/
const config = {
extends: ['./.eslintrc.base.cjs'],
overrides: [
...require('./.eslintrc.base.cjs').overrides,
{
files: ['src/interfaces/map-like.ts'],
rules: {
'@typescript-eslint/consistent-indexed-object-style': 0
}
},
{
files: [
'src/types/built-in.ts',
'src/types/fn.ts',
'src/types/is-index-signature.ts'
],
rules: {
'@typescript-eslint/ban-types': 0
}
},
{
files: ['src/types/decorator-class.ts', 'src/types/decorator-method.ts'],
rules: {
'@typescript-eslint/no-invalid-void-type': 0
}
},
{
files: ['src/types/guard-type-array.ts', 'src/types/guard-type.ts'],
rules: {
'@typescript-eslint/sort-type-constituents': [
2,
{
checkIntersections: false
}
]
}
},
{
files: ['src/utils/__tests__/ksort.spec.ts'],
rules: {
'sort-keys': 0
}
},
{
files: ['src/utils/is-falsy.ts'],
rules: {
'@typescript-eslint/strict-boolean-expressions': 0
}
},
{
files: ['src/utils/ksort.ts'],
rules: {
'@typescript-eslint/no-use-before-define': 0
}
},
{
files: ['src/utils/noop.ts'],
rules: {
'unicorn/no-useless-undefined': 0
}
}
],
root: true
}
module.exports = config