Skip to content

Configure ESLint to ignore underscore-prefixed function arguments#19

Merged
PttCodingMan merged 1 commit into
mainfrom
claude/debug-cicd-failure-9EAyS
May 18, 2026
Merged

Configure ESLint to ignore underscore-prefixed function arguments#19
PttCodingMan merged 1 commit into
mainfrom
claude/debug-cicd-failure-9EAyS

Conversation

@PttCodingMan

Copy link
Copy Markdown
Owner

Summary

Updated the ESLint no-unused-vars rule configuration to ignore function arguments that start with an underscore, following a common convention for intentionally unused parameters.

Changes

  • Added argsIgnorePattern: '^_' to the no-unused-vars rule in frontend/eslint.config.js
  • This allows developers to prefix unused function parameters with _ (e.g., (_unused) => { ... }) to signal intent and suppress linting warnings

Details

This is a common JavaScript convention where underscore-prefixed identifiers indicate intentionally unused variables. The existing configuration already ignored uppercase and underscore-prefixed variable names (varsIgnorePattern: '^[A-Z_]'); this change extends that pattern to function arguments for consistency.

https://claude.ai/code/session_01KndTBoSS4psob1CTs9q5cs

The compositionGuardPlugin added in 5d89a69 declares _view/_event
handler args that are intentionally unused, prefixed with _ per the
existing convention. no-unused-vars only had varsIgnorePattern, so
these args failed the lint step and broke CI on main. Add
argsIgnorePattern: '^_' to honor the prefix convention.

https://claude.ai/code/session_01KndTBoSS4psob1CTs9q5cs
@PttCodingMan PttCodingMan merged commit 006856a into main May 18, 2026
4 checks passed
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