Skip to content

chore(claude): never disable lint rules, as const over enums - #14

Merged
helderberto merged 1 commit into
mainfrom
chore/claude-typescript-rules
Oct 24, 2026
Merged

helderberto merged 1 commit into
mainfrom
chore/claude-typescript-rules

Conversation

@helderberto

Copy link
Copy Markdown
Owner

What changed

rules/typescript.md:

  • Never disable an ESLint rule, inline or in config; fix the code. @ts-expect-error keeps its exception for tests of invalid input
  • interface for object shapes; type only for unions, tuples, mapped/conditional types, typeof derivations
  • No enum: as const object, union via (typeof X)[keyof typeof X]

any → unknown was already covered.

Test plan

  • CI: Markdown only

Generated by Claude Code

@helderberto
helderberto merged commit aa7f38b into main Oct 24, 2026
2 checks passed
@helderberto
helderberto deleted the chore/claude-typescript-rules branch October 24, 2026 10:51
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