eslint-plugin-lwc
eslint-plugin-lwc copied to clipboard
Allow multiconditional !import.meta.ev.SSR statements
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);
}