salesforce / eslint-plugin-lwc

Official ESLint rules for LWC
MIT License
98 stars 32 forks source link

Add rule for deprecated directives if:true and if:false #141

Open kratoon opened 10 months ago

kratoon commented 10 months ago

Implement a rule to check for deprecated directives if:true and if:false

The legacy if:true and if:false directives are no longer recommended as Salesforce intend to deprecate and remove these directives in the future. Salesforce recommends that we replace their usage with the new conditional directives to future-proof your code.

https://trailhead.salesforce.com/content/learn/modules/javascript-developer-i-certification-maintenance-summer-23/maintain-your-javascript-developer-i-certification-for-summer-23

git2gus[bot] commented 10 months ago

This issue has been linked to a new work item: W-14899807

wjhsf commented 10 months ago

Thanks for the suggestion, @kratoon! I've added a ticket for this to our internal tracking.