@@ -11,24 +11,26 @@ export default tseslint.config(
1111 rules : {
1212 "@typescript-eslint/no-explicit-any" : "off" ,
1313 "@typescript-eslint/no-unused-vars" : [ "warn" , { "argsIgnorePattern" : "^_" , "varsIgnorePattern" : "^_" , "caughtErrorsIgnorePattern" : "^_" } ] ,
14- "@typescript-eslint/no-require-imports" : "off " ,
15- "@typescript-eslint/no-empty-object-type" : "off " ,
14+ "@typescript-eslint/no-require-imports" : "error " ,
15+ "@typescript-eslint/no-empty-object-type" : "warn " ,
1616 "no-case-declarations" : "error" ,
17- "no-useless-escape" : "off " ,
17+ "no-useless-escape" : "error " ,
1818 "prefer-const" : "error" ,
1919 "no-empty" : "warn" ,
2020 "no-undef" : "off" ,
2121 "no-useless-catch" : "error" ,
2222 "no-console" : "warn" ,
23- "@typescript-eslint/no-this-alias" : "off " ,
24- "@typescript-eslint/no-unsafe-function-type" : "off "
23+ "@typescript-eslint/no-this-alias" : "warn " ,
24+ "@typescript-eslint/no-unsafe-function-type" : "error "
2525 }
2626 } ,
2727 {
2828 // CLI and tools: console output is intentional for user-facing terminal output
29+ // require() needed for dynamic module loading in CLI commands
2930 files : [ "packages/tools/**/*.ts" ] ,
3031 rules : {
31- "no-console" : "off"
32+ "no-console" : "off" ,
33+ "@typescript-eslint/no-require-imports" : "off"
3234 }
3335 } ,
3436 {
@@ -38,6 +40,20 @@ export default tseslint.config(
3840 "no-console" : "off"
3941 }
4042 } ,
43+ {
44+ // Platform-node: require() needed for dynamic module loading at runtime
45+ files : [ "packages/foundation/platform-node/**/*.ts" ] ,
46+ rules : {
47+ "@typescript-eslint/no-require-imports" : "off"
48+ }
49+ } ,
50+ {
51+ // Memory driver: require('fs') needed for persistence
52+ files : [ "packages/drivers/memory/src/index.ts" , "packages/drivers/memory/test/index.test.ts" ] ,
53+ rules : {
54+ "@typescript-eslint/no-require-imports" : "off"
55+ }
56+ } ,
4157 {
4258 // SDK driver: logging is user-controlled via enableLogging flag
4359 files : [ "packages/drivers/sdk/src/index.ts" ] ,
0 commit comments