Repository navigation
refactor: Base ShellLanguageOptions on core LanguageOptions - #43
Conversation
Define `ShellLanguageOptions` as `@eslint/core`'s `LanguageOptions` instead of a standalone index-signature interface, for consistency with the other language plugins. The resulting type is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Follow-up to the last open review thread on #3, where it was suggested that
ShellLanguageOptionsextendLanguageOptionsfrom@eslint/corefor consistency with the other language plugins.What changed
src/types.ts:ShellLanguageOptionsis nowLanguageOptionsfrom@eslint/corerather than its own{ [key: string]: unknown }interface.Notes for reviewers
variant?: ShellVariantmember, but that option has since been removed (the dialect is chosen by the language:shell/bash,shell/posix, orshell/mksh).interface ... extends LanguageOptions {}fails@typescript-eslint/no-empty-object-type, so this uses a type alias. The resulting type is the same as before (Record<string, unknown>), so there is no change for users.@eslint/coreis already a runtime dependency, so the published.d.tsresolves.Testing
Typecheck, build, lint, and all 369 tests pass.
🤖 Generated with Claude Code
Summary by CodeRabbit