salesforce / eslint-plugin-lwc

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

Allow multiconditional !import.meta.ev.SSR statements #158

Open gracebrack opened 5 months ago

gracebrack commented 5 months ago

@lwc/lwc/no-unsupported-ssr-propertiesdoes not recognize when there is a multi conditional check with !import.meta.ev.SSR.

Example: This will have an error even though it has the correct check in place

if (!import.meta.ev.SSR && randomOtherCheck ) {
  this.dispatchEvent(someEvent);
}