QUAL016warningPro

duplicate-external-creation

Parallel creation on synced services causes duplicate resources

Applies to: JavaScript, TypeScript

Why this matters

When you create the same resource (e.g., calendar event) on multiple synced services in parallel via Promise.all, each service replicates the write to the others, causing duplicates. Create on the primary service first, then fall back to the secondary on failure.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, QUAL016 includedstablestack explain QUAL016

QUAL016 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: QUAL016