eslint-plugin-lwc icon indicating copy to clipboard operation
eslint-plugin-lwc copied to clipboard

Allow multiconditional !import.meta.ev.SSR statements

Open gracebrack opened this issue 1 year ago • 0 comments
trafficstars

@lwc/lwc/no-unsupported-ssr-properties does 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);
}

gracebrack avatar Jun 27 '24 17:06 gracebrack