@@ -8,7 +8,7 @@ const config = tsEslint.config(
8
8
{
9
9
languageOptions : {
10
10
sourceType : 'module' ,
11
- globals : { ...globals . nodeBuiltin } ,
11
+ globals : { ...globals . node } ,
12
12
} ,
13
13
linterOptions : {
14
14
noInlineConfig : false ,
@@ -108,18 +108,20 @@ const config = tsEslint.config(
108
108
yoda : 2 ,
109
109
} ,
110
110
} ,
111
- // NOTE: We need to apply this only to .ts files (and not to .mjs files).
111
+ // NOTE: We need to apply this only to .ts source files (and not to .mjs
112
+ // files).
112
113
...tsEslint . configs . recommendedTypeChecked . map ( item => ( {
113
114
...item ,
114
115
files : [ 'node/src/**/*.ts' ] ,
115
116
} ) ) ,
116
- // NOTE: We need to apply this only to .ts files (and not to .mjs files).
117
+ // NOTE: We need to apply this only to .ts source files (and not to .mjs
118
+ // files).
117
119
...tsEslint . configs . stylisticTypeChecked . map ( item => ( {
118
120
...item ,
119
121
files : [ 'node/src/**/*.ts' ] ,
120
122
} ) ) ,
121
123
{
122
- name : 'mediasoup .ts files' ,
124
+ name : '.ts source files' ,
123
125
files : [ 'node/src/**/*.ts' ] ,
124
126
languageOptions : {
125
127
parserOptions : {
@@ -153,7 +155,10 @@ const config = tsEslint.config(
153
155
] ,
154
156
// Sorry, we need many `any` usage.
155
157
'@typescript-eslint/no-explicit-any' : 0 ,
156
- '@typescript-eslint/explicit-function-return-type' : 2 ,
158
+ '@typescript-eslint/explicit-function-return-type' : [
159
+ 2 ,
160
+ { allowExpressions : true } ,
161
+ ] ,
157
162
'@typescript-eslint/no-unsafe-member-access' : 0 ,
158
163
'@typescript-eslint/no-unsafe-assignment' : 0 ,
159
164
'@typescript-eslint/no-unsafe-call' : 0 ,
@@ -169,7 +174,7 @@ const config = tsEslint.config(
169
174
} ,
170
175
} ,
171
176
{
172
- name : 'mediasoup .ts test files' ,
177
+ name : '.ts test files' ,
173
178
...jestEslint . configs [ 'flat/recommended' ] ,
174
179
files : [ 'node/src/test/**/*.ts' ] ,
175
180
rules : {
0 commit comments