salesforce / eslint-plugin-lwc

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

Show lint warning for createContentDocumentAndVersion #126

Closed sfdctaka closed 1 year ago

sfdctaka commented 1 year ago

LDS function createContentDocumentAndVersion is draft aware for offline. But offline feature is only available for mobile apps only. Eslint should show a warning if createContentDocumentAndVersion is used, regardless of the LWC using it is for desktop and/or for mobile, that the function is draft aware only when used in mobile.

cc: @khawkins

ekashida commented 1 year ago

For posterity, this was discussed in a different thread and the conclusion was that introducing a non-fixable warning for the customer audience is unprecedented, and would require further discussion.

Closing for now, but feel free to reopen if you'd like to pick up the discussion where we left off.