@@ -341,7 +341,37 @@ export default defineConfig(
341341 } ,
342342 } ,
343343
344- // 5) Generated OpenAPI schema uses canonical lowercase names from openapi-typescript
344+ // 5) openapi-fetch compatibility layer: Promise-based types and pragmatic "any" are expected.
345+ // It is intentionally treated as a boundary/interop module.
346+ {
347+ files : [ "src/openapi-fetch/**/*.ts" ] ,
348+ rules : {
349+ "no-restricted-syntax" : "off" ,
350+ "@typescript-eslint/no-restricted-types" : "off" ,
351+ "@typescript-eslint/no-empty-object-type" : "off" ,
352+ "@typescript-eslint/no-unnecessary-type-parameters" : "off" ,
353+ "@typescript-eslint/no-invalid-void-type" : "off" ,
354+ "@typescript-eslint/no-unsafe-assignment" : "off" ,
355+ "@typescript-eslint/no-unsafe-argument" : "off" ,
356+ "@typescript-eslint/no-unsafe-member-access" : "off" ,
357+ "@typescript-eslint/no-unsafe-call" : "off" ,
358+ "@typescript-eslint/no-unsafe-return" : "off" ,
359+ "@typescript-eslint/no-unnecessary-condition" : "off" ,
360+ "@typescript-eslint/no-base-to-string" : "off" ,
361+ "sonarjs/pseudo-random" : "off" ,
362+ "sonarjs/cognitive-complexity" : "off" ,
363+ "sonarjs/different-types-comparison" : "off" ,
364+ "unicorn/consistent-function-scoping" : "off" ,
365+ "unicorn/prefer-string-slice" : "off" ,
366+ complexity : "off" ,
367+ "max-lines" : "off" ,
368+ "max-lines-per-function" : "off" ,
369+ "max-params" : "off" ,
370+ "max-depth" : "off" ,
371+ } ,
372+ } ,
373+
374+ // 6) Generated OpenAPI schema uses canonical lowercase names from openapi-typescript
345375 {
346376 files : [ "src/core/api/openapi.d.ts" ] ,
347377 rules : {
@@ -352,12 +382,12 @@ export default defineConfig(
352382 } ,
353383 } ,
354384
355- // 6 ) Для JS-файлов отключим типо-зависимые проверки
385+ // 7 ) Для JS-файлов отключим типо-зависимые проверки
356386 {
357387 files : [ '**/*.{js,cjs,mjs}' ] ,
358388 extends : [ tseslint . configs . disableTypeChecked ] ,
359389 } ,
360390
361- // 6 ) Глобальные игноры
391+ // 8 ) Глобальные игноры
362392 { ignores : [ 'dist/**' , 'build/**' , 'coverage/**' , '**/dist/**' ] } ,
363393) ;
0 commit comments