Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

599 B
Raw Blame
id: ts-no-expression-void
language: typescript
severity: error
message: Use `void` only as a statement.
note: |-
  Rule FE-13 in .agents/rules/web/solid.md. `() => void p()` hides a promise
  from typescript/no-floating-promises, because the arrow returns the voided
  value. Start the promise with fireAndForget from @core/util/fireAndForget,
  handle its rejection where the work starts, or use a block body for a
  non-promise.
files:
  - apps/web/**
rule:
  kind: unary_expression
  regex: '^void\s'
  not:
    any:
      - inside:
          kind: expression_statement
      - regex: '^void 0$'