Skip to content

chore: fix typo in eslint.config.mjs - #1188

Merged
isamu merged 1 commit into
receptron:mainfrom
noritaka1166:fix-typo-samples
Aug 11, 2025
Merged

isamu merged 1 commit into
receptron:mainfrom
noritaka1166:fix-typo-samples

Conversation

@noritaka1166

@noritaka1166 noritaka1166 commented Aug 11, 2025 •

Copy link
Copy Markdown
Contributor

esling.config.mjs 内のタイポ修正

  • samles → samples

合わせて、 "apiDoc/*" は "apiDoc/**/*" に包含されており、冗長かと思うので削除

yarn run eslint を実行して差分がないことを確認済み

Summary by CodeRabbit

  • Chores
    • Standardized linting setup across the project by correcting directory patterns to include the samples directory and removing redundant ignore rules. This expands lint coverage and improves consistency.
    • Enhances maintainability and code quality for contributors; no changes to runtime behavior, APIs, or UI.

@coderabbitai

coderabbitai Bot commented Aug 11, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Multiple 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

Cohort / File(s) Summary of Changes
Agent filter ESLint configs
agent_filters/cache_agent_filter/eslint.config.mjs, agent_filters/http_client_agent_filter/eslint.config.mjs, agent_filters/namedinput_validator_agent_filter/eslint.config.mjs, agent_filters/step_runner_agent_filter/eslint.config.mjs, agent_filters/stream_agent_filter/eslint.config.mjs, agent_filters/utils/eslint.config.mjs
Fixed files glob “samles” → “samples”; removed apiDoc/* from ignores (kept apiDoc/**/*).
Agents ESLint configs
agents/agent_utils/eslint.config.mjs, agents/data_agents/eslint.config.mjs, agents/input_agents/eslint.config.mjs, agents/llm_agents/eslint.config.mjs, agents/service_agents/eslint.config.mjs, agents/sleeper_agents/eslint.config.mjs, agents/vanilla_agents/eslint.config.mjs, agents/vanilla_node_agents/eslint.config.mjs
Fixed files glob “samles” → “samples”; removed apiDoc/* from ignores (kept apiDoc/**/*; other existing patterns unchanged).
LLM agents ESLint configs
llm_agents/anthropic_agent/eslint.config.mjs, llm_agents/gemini_agent/eslint.config.mjs, llm_agents/groq_agent/eslint.config.mjs, llm_agents/llm_utils/eslint.config.mjs, llm_agents/openai_agent/eslint.config.mjs, llm_agents/openai_fetch_agent/eslint.config.mjs, llm_agents/replicate_agent/eslint.config.mjs, llm_agents/slashgpt_agent/eslint.config.mjs, llm_agents/token_bound_string_agent/eslint.config.mjs, llm_agents/tools_agent/eslint.config.mjs
Fixed files glob “samles” → “samples”; removed apiDoc/* from ignores (kept apiDoc/**/*).
Packages ESLint configs (glob fix + ignore tweak)
packages/agent_filters/eslint.config.mjs, packages/agents/eslint.config.mjs, packages/graphai/eslint.config.mjs, packages/lite/eslint.config.mjs, packages/samples/eslint.config.mjs, packages/test_utils/eslint.config.mjs
Fixed files glob “samles” → “samples”; removed apiDoc/* from ignores (kept apiDoc/**/*; other listed patterns retained).
Packages ESLint configs (glob fix only)
packages/agentdoc/eslint.config.mjs, packages/cli/eslint.config.mjs
Fixed files glob “samles” → “samples”; ignores unchanged.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

I thump my paws at tidy lines,
From samles to samples, lint now shines.
apiDoc stars no longer twink,
One pattern trimmed with careful wink.
I hop through configs, whiskers proud—
Clean paths, clear rules, no bugs allowed! 🐇✨

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 files

You’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

📥 Commits

Reviewing files that changed from the base of the PR and between b84359f and e9c9039.

📒 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 redundant apiDoc/* 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 ignores

Both searches confirm:

  • ✔ No instances of the misspelled “samles”
  • ✔ No literal "apiDoc/*" ignore entries remain

Changes 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 — approved

packages/agentdoc/eslint.config.mjs (1)

5-5: Lint Configuration Corrected – ‘samples’ Glob Confirmed

The 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) — LGTM

Ensures ESLint covers the intended samples folder.

llm_agents/slashgpt_agent/eslint.config.mjs (2)

5-5: Glob typo fix is correct

Now includes samples as intended.


8-8: Redundant ignore removed (apiDoc/*) — correct

apiDoc/**/* 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 correct

Removing 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 — approved

apiDoc/**/* 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 Occurrences

I 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 cleanup

Matches 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 cleanup

Change 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 cleanup

Redundant "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 cleanup

Consistent 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 cleanup

Looks 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/*"],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ 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.

Suggested change
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/**/*".

@isamu

isamu commented Aug 11, 2025

Copy link
Copy Markdown
Member

ありがとうございます。
テストも通ったので、修正が正しいようです。

@isamu
isamu merged commit fca517e into receptron:main Aug 11, 2025
@noritaka1166
noritaka1166 deleted the fix-typo-samples branch August 11, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants