forcedotcom / forcedotcom/eslint-plugin-aura

no-deprecate-event-creation incorrectly flags e.force:showToast

Open
#39 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
29
Forks
11
PR merge metrics
No merged PRs in 30d

Description

![image](https://user-images.githubusercontent.com/111259588/234453633-03538cf2-99eb-47e5-9b67-ac8e123b5ce7.png)

As per Salesforce documentation, and functionality the below is valid
``` apex
const toastEvent = $A.get("e.force:showToast");
```
https://developer.salesforce.com/docs/component-library/bundle/force:showToast/documentation

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.