@@ -17,7 +17,18 @@ const commonFiles = '{js,mjs,cjs,ts,mts,cts,jsx,tsx}';
1717
1818const commonRuleset = merge ( ...common , { files : [ `**/*${ commonFiles } ` ] } ) ;
1919
20- const nodeRuleset = merge ( ...node , { files : [ `**/*${ commonFiles } ` ] } ) ;
20+ const nodeRuleset = merge ( ...node , {
21+ files : [ `**/*${ commonFiles } ` ] ,
22+ rules : {
23+ 'no-restricted-globals' : 0 ,
24+ 'n/prefer-global/buffer' : [ 2 , 'always' ] ,
25+ 'n/prefer-global/process' : [ 2 , 'always' ] ,
26+ 'n/prefer-global/text-decoder' : [ 2 , 'always' ] ,
27+ 'n/prefer-global/text-encoder' : [ 2 , 'always' ] ,
28+ 'n/prefer-global/url' : [ 2 , 'always' ] ,
29+ 'n/prefer-global/url-search-params' : [ 2 , 'always' ] ,
30+ } ,
31+ } ) ;
2132
2233const typeScriptRuleset = merge ( ...typescript , {
2334 files : [ `**/*${ commonFiles } ` ] ,
@@ -123,7 +134,6 @@ export default defineConfig(
123134 {
124135 files : [ `packages/{api-extractor,api-extractor-model,api-extractor-utils}/**/*${ commonFiles } ` ] ,
125136 rules : {
126- 'n/prefer-global/process' : 0 ,
127137 '@typescript-eslint/naming-convention' : 0 ,
128138 '@typescript-eslint/no-empty-interface' : 0 ,
129139 '@typescript-eslint/no-empty-object-type' : 0 ,
@@ -236,11 +246,6 @@ export default defineConfig(
236246 {
237247 files : [ `packages/rest/**/*${ commonFiles } ` ] ,
238248 rules : {
239- 'n/prefer-global/url' : 0 ,
240- 'n/prefer-global/url-search-params' : 0 ,
241- 'n/prefer-global/buffer' : 0 ,
242- 'n/prefer-global/process' : 0 ,
243- 'no-restricted-globals' : 0 ,
244249 'unicorn/prefer-node-protocol' : 0 ,
245250 } ,
246251 } ,
@@ -255,8 +260,6 @@ export default defineConfig(
255260 {
256261 files : [ `packages/voice/**/*${ commonFiles } ` ] ,
257262 rules : {
258- 'no-restricted-globals' : 0 ,
259- 'n/prefer-global/buffer' : 0 ,
260263 '@typescript-eslint/no-unsafe-declaration-merging' : 0 ,
261264 } ,
262265 } ,
0 commit comments