Repository navigation
chore: fix typo in eslint.config.mjs - #1188
Conversation
WalkthroughMultiple ESLint config files update the files glob from “samles” to “samples.” Many also remove “apiDoc/” from ignores while keeping “apiDoc/**/.” No other structural changes. Updates span agent_filters, agents, llm_agents, and packages directories. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
llm_agents/token_bound_string_agent/eslint.config.mjs (1)
8-8: Confirm intent to ignore all TypeScript filesYou’re ignoring "*.ts" globally while also including ts in files globs. If TS should be linted, drop it from ignores. If intentional, ignore this.
If TS should be linted, consider:
- ignores: ["lib/**/*", "*.ts", "apiDoc/**/*"], + ignores: ["lib/**/*", "apiDoc/**/*"],Note: This same pattern appears across other updated eslint.config.mjs files in this PR.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (32)
agent_filters/cache_agent_filter/eslint.config.mjs(1 hunks)agent_filters/http_client_agent_filter/eslint.config.mjs(1 hunks)agent_filters/namedinput_validator_agent_filter/eslint.config.mjs(1 hunks)agent_filters/step_runner_agent_filter/eslint.config.mjs(1 hunks)agent_filters/stream_agent_filter/eslint.config.mjs(1 hunks)agent_filters/utils/eslint.config.mjs(1 hunks)agents/agent_utils/eslint.config.mjs(1 hunks)agents/data_agents/eslint.config.mjs(1 hunks)agents/input_agents/eslint.config.mjs(1 hunks)agents/llm_agents/eslint.config.mjs(1 hunks)agents/service_agents/eslint.config.mjs(1 hunks)agents/sleeper_agents/eslint.config.mjs(1 hunks)agents/vanilla_agents/eslint.config.mjs(1 hunks)agents/vanilla_node_agents/eslint.config.mjs(1 hunks)llm_agents/anthropic_agent/eslint.config.mjs(1 hunks)llm_agents/gemini_agent/eslint.config.mjs(1 hunks)llm_agents/groq_agent/eslint.config.mjs(1 hunks)llm_agents/llm_utils/eslint.config.mjs(1 hunks)llm_agents/openai_agent/eslint.config.mjs(1 hunks)llm_agents/openai_fetch_agent/eslint.config.mjs(1 hunks)llm_agents/replicate_agent/eslint.config.mjs(1 hunks)llm_agents/slashgpt_agent/eslint.config.mjs(1 hunks)llm_agents/token_bound_string_agent/eslint.config.mjs(1 hunks)llm_agents/tools_agent/eslint.config.mjs(1 hunks)packages/agent_filters/eslint.config.mjs(1 hunks)packages/agentdoc/eslint.config.mjs(1 hunks)packages/agents/eslint.config.mjs(1 hunks)packages/cli/eslint.config.mjs(1 hunks)packages/graphai/eslint.config.mjs(1 hunks)packages/lite/eslint.config.mjs(1 hunks)packages/samples/eslint.config.mjs(1 hunks)packages/test_utils/eslint.config.mjs(1 hunks)
🔇 Additional comments (46)
llm_agents/tools_agent/eslint.config.mjs (2)
5-5: Typo fix in files glob is confirmed (samles → samples).Ran
rg -n -F 'samles'across the repo—no occurrences found.
Change is correct, non-breaking, and ready to merge.
8-9: Confirm removal of redundantapiDoc/*ignore
Ran a targeted search for exact"apiDoc/*"; no matches found. All ESLint configs consistently use"apiDoc/**/*"as intended. Removal is verified with no behavior change.agent_filters/stream_agent_filter/eslint.config.mjs (1)
5-5: All cleanup verified—no leftover typos or redundant ignoresBoth searches confirm:
- ✔ No instances of the misspelled “samles”
- ✔ No literal
"apiDoc/*"ignore entries remainChanges can be approved.
llm_agents/llm_utils/eslint.config.mjs (1)
5-5: Consistent fix across the repo
- Corrected files glob now includes samples.
- Redundant apiDoc/* removed; apiDoc/**/* suffices.
Also applies to: 8-8
agents/sleeper_agents/eslint.config.mjs (1)
5-5: LGTM — typo fixed and ignores simplified
- samples glob is correct.
- apiDoc/* removal is redundant cleanup.
Also applies to: 8-8
agent_filters/utils/eslint.config.mjs (1)
5-5: Looks good
- Glob typo fixed to include samples.
- Ignored patterns are cleaner and equivalent in coverage.
Also applies to: 8-8
llm_agents/replicate_agent/eslint.config.mjs (1)
5-5: Approved — correct glob and redundant ignore removal
- samples glob ensures sample files are linted.
- apiDoc/**/* alone is sufficient.
Also applies to: 8-8
agents/input_agents/eslint.config.mjs (1)
5-5: All good
- Typo fix to samples is correct.
- apiDoc/* removal keeps config minimal and equivalent.
Also applies to: 8-8
packages/agent_filters/eslint.config.mjs (1)
5-5: LGTM
- Corrects files glob to include samples.
- Removes redundant apiDoc/; apiDoc/**/ already covers all files under apiDoc.
Also applies to: 8-8
agents/vanilla_agents/eslint.config.mjs (1)
5-5: Typo fix: samples glob — approvedpackages/agentdoc/eslint.config.mjs (1)
5-5: Lint Configuration Corrected – ‘samples’ Glob ConfirmedThe change in packages/agentdoc/eslint.config.mjs (line 5) now correctly includes the samples directory in lint targets. I ran a repository-wide search for “samles” and found no remaining occurrences of the typo. No further action needed.
packages/cli/eslint.config.mjs (1)
5-5: Corrected glob (samles → samples) — LGTMEnsures ESLint covers the intended samples folder.
llm_agents/slashgpt_agent/eslint.config.mjs (2)
5-5: Glob typo fix is correctNow includes samples as intended.
8-8: Redundant ignore removed (apiDoc/*) — correctapiDoc/**/* already covers files directly under apiDoc and nested paths; keeping only the recursive pattern is sufficient.
agents/llm_agents/eslint.config.mjs (2)
5-5: Fixed glob to include samples — looks good
8-8: Ignore simplification is correctRemoving apiDoc/* is safe since apiDoc/**/* covers all contents.
agent_filters/namedinput_validator_agent_filter/eslint.config.mjs (2)
5-5: Glob correction (samles → samples) — approved
8-8: Consolidated apiDoc ignores — approvedapiDoc/**/* is sufficient to exclude all files in apiDoc.
agents/data_agents/eslint.config.mjs (2)
5-5: Samples glob fix — LGTM
8-8: Removed redundant apiDoc/ — LGTM*apiDoc/**/* already covers direct children and nested files.
agents/agent_utils/eslint.config.mjs (2)
5-5: Typo fix in glob is correct
8-8: Ignore cleanup is correct (apiDoc//* is sufficient)**packages/test_utils/eslint.config.mjs (2)
5-5: Glob update to include samples — approved
8-8: Removed redundant apiDoc/ — approved*apiDoc/**/* already excludes everything under apiDoc.
llm_agents/token_bound_string_agent/eslint.config.mjs (1)
5-5: Typo “samles” Fully Corrected – No Remaining OccurrencesI ran the provided search and confirmed there are no instances of “samles” left in the repo. The typo fix and redundant ignore removal are complete. No further changes needed here.
llm_agents/gemini_agent/eslint.config.mjs (1)
5-5: LGTM: typo fix and ignore cleanup"samles" → "samples" and removing "apiDoc/*" are correct and non-functional changes.
Also applies to: 8-8
packages/samples/eslint.config.mjs (1)
5-5: LGTM: typo fix and ignore cleanupMatches the PR intent; no functional change expected.
This config’s files glob lists js, ts, json (no yaml/yml unlike others). If intentional for samples, all good; otherwise consider aligning with other packages.
Also applies to: 8-8
agent_filters/step_runner_agent_filter/eslint.config.mjs (1)
5-5: LGTM: typo fix and ignore cleanupChange is correct and consistent with the rest of the repo.
Also applies to: 8-8
packages/agents/eslint.config.mjs (1)
5-5: LGTM: typo fix and ignore cleanupRedundant "apiDoc/" removal is safe because "apiDoc/**/" already covers immediate children and nested paths.
Also applies to: 8-8
agents/service_agents/eslint.config.mjs (1)
5-5: LGTM: typo fix and ignore cleanupConsistent with other configs in the PR; no change in lint behavior expected.
Also applies to: 8-8
packages/lite/eslint.config.mjs (1)
5-5: LGTM: typo fix and ignore cleanupLooks good and aligns with the PR’s stated objective.
Also applies to: 8-8
packages/graphai/eslint.config.mjs (1)
5-5: LGTM: typo fix and ignore cleanup"apiDoc/" removal is redundant given "apiDoc/**/". Retaining "dist/*" here makes sense if this package emits dist artifacts.
Also applies to: 8-8
llm_agents/openai_fetch_agent/eslint.config.mjs (2)
5-5: Typo fix in files glob is correct.Switching samles → samples ensures the intended folder is linted.
8-8: Removed redundant ignore entry.apiDoc/**/* already covers immediate and nested files; dropping apiDoc/* simplifies the config with no change in effect.
agent_filters/http_client_agent_filter/eslint.config.mjs (2)
5-5: Glob typo fix looks good.Targets the correct samples directory for linting.
8-8: Ignore cleanup is valid.apiDoc/**/* subsumes apiDoc/*; removal reduces duplication.
agent_filters/cache_agent_filter/eslint.config.mjs (2)
5-5: Corrected files glob (samles → samples).Ensures actual samples are included by ESLint.
8-8: Redundant apiDoc/ ignore removed.*apiDoc/**/* already ignores those paths; change is purely de-duplication.
llm_agents/groq_agent/eslint.config.mjs (2)
5-5: LGTM on files glob correction.Samples directory will now be linted as intended.
8-8: LGTM on ignore consolidation.apiDoc/**/* covers both top-level and nested files; apiDoc/* is unnecessary.
llm_agents/anthropic_agent/eslint.config.mjs (2)
5-5: Typo fix approved.Ensures correct inclusion of samples in lint targets.
8-8: Ignore list deduplication approved.apiDoc/**/* suffices; apiDoc/* removed without changing behavior.
llm_agents/openai_agent/eslint.config.mjs (2)
5-5: Files glob update is correct.Fixes the directory name to samples.
8-8: Valid removal of apiDoc/ from ignores.*apiDoc/**/* already matches the same set; this removes duplication.
agents/vanilla_node_agents/eslint.config.mjs (2)
5-5: Good catch on samles → samples.Now linting the intended samples directory.
8-8: Ignore cleanup looks good.apiDoc/**/* already covers apiDoc/; dist/ retained as before.
| }, | ||
| { | ||
| ignores: ["lib/**/*", "*.ts", "apiDoc/**/*", "apiDoc/*", "dist/*"], | ||
| ignores: ["lib/**/*", "*.ts", "apiDoc/**/*", "dist/*"], |
There was a problem hiding this comment.
🛠️ Refactor suggestion
Consider ignoring dist recursively for consistency
Use dist//* (like lib//*), otherwise nested paths under dist may still be linted.
Apply this diff:
- ignores: ["lib/**/*", "*.ts", "apiDoc/**/*", "dist/*"],
+ ignores: ["lib/**/*", "*.ts", "apiDoc/**/*", "dist/**/*"],📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| ignores: ["lib/**/*", "*.ts", "apiDoc/**/*", "dist/*"], | |
| ignores: ["lib/**/*", "*.ts", "apiDoc/**/*", "dist/**/*"], |
🤖 Prompt for AI Agents
In agents/vanilla_agents/eslint.config.mjs around line 8, the ignores array uses
"dist/*" which only ignores top-level files in dist; change it to "dist/**/*" to
recursively ignore all files and subdirectories under dist for consistency with
patterns like "lib/**/*".
|
ありがとうございます。 |
esling.config.mjs 内のタイポ修正
合わせて、
"apiDoc/*"は"apiDoc/**/*"に包含されており、冗長かと思うので削除yarn run eslint を実行して差分がないことを確認済み
Summary by CodeRabbit