Skip to content

Commit c2b9cff

Browse files
committed
fix(lint): annotate the remedy method constant so the rule-id census does not read it as a rule id
Claude-Session: https://claude.ai/code/session_01ADHkmSwS4mQyXWrddL4r6B Co-authored-by: Claude <noreply@anthropic.com>
1 parent 0dfeeda commit c2b9cff

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎packages/lint/src/validate-action-body-writes.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,12 @@ export const ACTION_RECORD_WRITE_DISCARDED = 'action-record-write-discarded';
125125
* sandbox does not, so following it traded a silent no-op for a
126126
* `TypeError: not a function`. Its test pins it to `SANDBOX_API_WRITE_METHODS`
127127
* (validate-action-body-capabilities.ts), which is itself pinned to the
128-
* runner's list. Not re-exported from the package index.
128+
* runner's list. Not re-exported from the package index. Annotated `string`
129+
* because it is a method name, not a rule id: the rule-id barrel census
130+
* (`rule-id-barrel-exports.test.ts`) reads an unannotated exported string
131+
* constant as one.
129132
*/
130-
export const ACTION_RECORD_WRITE_REMEDY_METHOD = 'update';
133+
export const ACTION_RECORD_WRITE_REMEDY_METHOD: string = 'update';
131134

132135
/**
133136
* [#10653] The action-surface twin of `hook-body-source-unparseable`. Same

0 commit comments

Comments
 (0)