Skip to content

Commit ee63165

Browse files
committed
πŸ€– fix: Update eslint ignores for new src structure
- Update no-sync-fs-methods exception paths to new structure: - src/config.ts β†’ src/node/config.ts - src/debug/** β†’ src/cli/debug/** - src/git.ts β†’ src/node/git.ts - src/main-desktop.ts β†’ src/desktop/main.ts - src/services/** β†’ src/node/services/** - Add exception for src/common/utils/providers/ensureProvidersConfig.ts which uses process.env but is only called by Node.js code (cli/debug) Fixes static checks - lint now passes!
1 parent 1faf945 commit ee63165

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

β€Žeslint.config.mjsβ€Ž

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -349,18 +349,18 @@ export default defineConfig([
349349
// Temporarily allow sync fs methods in files with existing usage
350350
// TODO: Gradually migrate these to async operations
351351
files: [
352-
"src/config.ts",
353-
"src/debug/**/*.ts",
354-
"src/git.ts",
355-
"src/main-desktop.ts",
356-
"src/config.test.ts",
357-
"src/services/gitService.ts",
358-
"src/services/log.ts",
359-
"src/services/streamManager.ts",
360-
"src/services/tempDir.ts",
361-
"src/services/tools/bash.ts",
362-
"src/services/tools/bash.test.ts",
363-
"src/services/tools/testHelpers.ts",
352+
"src/node/config.ts",
353+
"src/cli/debug/**/*.ts",
354+
"src/node/git.ts",
355+
"src/desktop/main.ts",
356+
"src/node/config.test.ts",
357+
"src/node/services/gitService.ts",
358+
"src/node/services/log.ts",
359+
"src/node/services/streamManager.ts",
360+
"src/node/services/tempDir.ts",
361+
"src/node/services/tools/bash.ts",
362+
"src/node/services/tools/bash.test.ts",
363+
"src/node/services/tools/testHelpers.ts",
364364
],
365365
rules: {
366366
"local/no-sync-fs-methods": "off",
@@ -409,6 +409,9 @@ export default defineConfig([
409409
"src/terminal-window.tsx",
410410
"**/*.test.ts",
411411
"**/*.test.tsx",
412+
// This file is only used by Node.js code (cli/debug) but lives in common/
413+
// TODO: Consider moving to node/utils/
414+
"src/common/utils/providers/ensureProvidersConfig.ts",
412415
],
413416
rules: {
414417
"no-restricted-globals": [

0 commit comments

Comments
Β (0)