Skip to content

Fix lint warnings (closes #146) - #158

Merged
pglevy merged 1 commit into
mainfrom
fix/lint-warnings-146
Jul 21, 2026
Merged

Fix lint warnings (closes #146)#158
pglevy merged 1 commit into
mainfrom
fix/lint-warnings-146

Conversation

@pglevy

@pglevy pglevy commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Summary

Reduces lint warnings from 82 → 61 (all remaining are intentional no-explicit-any).

Changes

  • ESLint config: Added argsIgnorePattern: "^_" and varsIgnorePattern: "^_" to no-unused-vars rule, respecting the underscore prefix convention. Added gitignore to global ignores.
  • Dead code removal: Removed unused X import (MessageBanner), totalPages variable (ReadOnlyGrid), openDropdown helper (DropdownField test), container destructuring (RadioButton test), matchingHeaders (ReadOnlyGrid test), TokenGroup interface (generate-css), unused err catch binding (token-server).
  • exhaustive-deps fix: Wrapped rows normalization in React.useMemo to stabilize the dependency for downstream memos.
  • no-explicit-any: Left as "warn" — these are intentional for SAIL-mirroring polymorphic props (value, saveInto, choiceLabels, data, etc.).

Verification

  • pnpm run typecheck — clean
  • pnpm run lint — 0 errors, 61 warnings (all no-explicit-any)
  • pnpm run test — 466 tests passing

- Add argsIgnorePattern/varsIgnorePattern for _ prefix convention
- Add gitignore folder to ESLint global ignores
- Remove unused imports/variables (X, totalPages, openDropdown,
  container, matchingHeaders, TokenGroup, err)
- Fix react-hooks/exhaustive-deps by wrapping rows in useMemo
- Remaining 61 warnings are all no-explicit-any (intentional)
@pglevy pglevy self-assigned this Jul 21, 2026
@pglevy pglevy linked an issue Jul 21, 2026 that may be closed by this pull request
@pglevy
pglevy merged commit 39b6e09 into main Jul 21, 2026
3 checks passed
@pglevy
pglevy deleted the fix/lint-warnings-146 branch July 21, 2026 18:06
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.

Fix remaining lint warnings (82 total)

1 participant