Skip to content

refactor(lint): ESLint config changes + mechanical code fixes#52

Merged
saithis merged 6 commits intomasterfrom
refactor/fix-lint-warnings
Mar 27, 2026
Merged

refactor(lint): ESLint config changes + mechanical code fixes#52
saithis merged 6 commits intomasterfrom
refactor/fix-lint-warnings

Conversation

@saithis
Copy link
Copy Markdown
Collaborator

@saithis saithis commented Mar 26, 2026

  • Add argsIgnorePattern/varsIgnorePattern to no-unused-vars (components)
  • Allow arrow functions in no-empty-function rule
  • Add checksVoidReturn.arguments:false to no-misused-promises
  • Turn off no-explicit-any for spec files in components config
  • Suppress no-conflicting-lifecycle in CVA+MatFormFieldControl components
  • Add noop comments to empty method stubs
  • Remove unused _formatTime parameter
  • Remove stale eslint-disable directives

claude added 6 commits March 26, 2026 14:38
- Add argsIgnorePattern/varsIgnorePattern to no-unused-vars (components)
- Allow arrow functions in no-empty-function rule
- Add checksVoidReturn.arguments:false to no-misused-promises
- Turn off no-explicit-any for spec files in components config
- Suppress no-conflicting-lifecycle in CVA+MatFormFieldControl components
- Add noop comments to empty method stubs
- Remove unused _formatTime parameter
- Remove stale eslint-disable directives
Replace `any` with proper types across all component source files:
- CVA callbacks use component-specific value types
- Provider declarations use `Provider` from @angular/core
- Timer refs use `ReturnType<typeof setTimeout>`
- Validate returns use `ValidationErrors`
- Generic defaults changed from `<T = any>` to `<T = unknown>`
- Angular Material internal access uses eslint-disable with explanation
- String coercion uses `String()` instead of `(value as any) + ''`
- Migrate demo components to signal APIs (input, viewChild, contentChild)
- Fix no-unsafe-* warnings with proper typing in demo
- Fix select generic variance: compareWith accepts unknown params
- Accept string dataSource values for custom select services
- Add DemoSelectItem type for proper demo data typing
- Cast sort comparators to number for unknown-typed values in specs
- Use typed generic params for ZvTableDataSource in specs
- Keep getControlType as any due to duck-typing Angular Material privates
@saithis saithis merged commit 89c5a77 into master Mar 27, 2026
1 check passed
@saithis saithis deleted the refactor/fix-lint-warnings branch March 27, 2026 07: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.

3 participants