eslint-plugin-lwc
eslint-plugin-lwc copied to clipboard
Add rule for deprecated directives if:true and if:false
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
This issue has been linked to a new work item: W-14899807
Thanks for the suggestion, @kratoon! I've added a ticket for this to our internal tracking.