@@ -8,7 +8,7 @@ const config = tsEslint.config(
88 {
99 languageOptions : {
1010 sourceType : 'module' ,
11- globals : { ...globals . nodeBuiltin } ,
11+ globals : { ...globals . node } ,
1212 } ,
1313 linterOptions : {
1414 noInlineConfig : false ,
@@ -108,18 +108,20 @@ const config = tsEslint.config(
108108 yoda : 2 ,
109109 } ,
110110 } ,
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).
112113 ...tsEslint . configs . recommendedTypeChecked . map ( item => ( {
113114 ...item ,
114115 files : [ 'node/src/**/*.ts' ] ,
115116 } ) ) ,
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).
117119 ...tsEslint . configs . stylisticTypeChecked . map ( item => ( {
118120 ...item ,
119121 files : [ 'node/src/**/*.ts' ] ,
120122 } ) ) ,
121123 {
122- name : 'mediasoup .ts files' ,
124+ name : '.ts source files' ,
123125 files : [ 'node/src/**/*.ts' ] ,
124126 languageOptions : {
125127 parserOptions : {
@@ -153,7 +155,10 @@ const config = tsEslint.config(
153155 ] ,
154156 // Sorry, we need many `any` usage.
155157 '@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+ ] ,
157162 '@typescript-eslint/no-unsafe-member-access' : 0 ,
158163 '@typescript-eslint/no-unsafe-assignment' : 0 ,
159164 '@typescript-eslint/no-unsafe-call' : 0 ,
@@ -169,7 +174,7 @@ const config = tsEslint.config(
169174 } ,
170175 } ,
171176 {
172- name : 'mediasoup .ts test files' ,
177+ name : '.ts test files' ,
173178 ...jestEslint . configs [ 'flat/recommended' ] ,
174179 files : [ 'node/src/test/**/*.ts' ] ,
175180 rules : {
0 commit comments