Skip to main content
RecommendedStrictAuto-fixableScope
errorerrortrueGadget action files
Related Gadget documentation: Gadget docs
What the linter reports:
  • Option keys must be plain identifiers or string literals.
  • Option values must be JSON-serializable literals.
  • Numeric separator raw is not valid JSON. Use fixed.
  • Shorthand properties are not allowed in options.

Examples

api/models/widget/actions/create.ts
export const options: ActionOptions = {
  // numeric separators are not valid JSON
  timeoutMS: 90_000,
};
Last modified on March 10, 2026