Skip to main content
This rule disallows the actionType property in global action options. The actionType property is only valid for model actions. Including it in global actions has no effect and may cause confusion.

Rule Details

This rule checks global action files (files in api/actions/) for the actionType property in the options export and reports an error if found. Severity: Error Auto-fixable: Yes

Examples

Incorrect

Correct

Auto-fixes

The rule automatically removes the actionType property:
This rule only applies to global actions. Model actions (in api/models/*/actions/) should use actionType to specify the action type.

When to Use

This rule is included in the recommended config and should always be enabled for Gadget projects. It prevents invalid configuration that could cause confusion or unexpected behavior.