Improve if condition break (#18401)

Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
This commit is contained in:
fisker CheungandAlexander Kachkaev authored and GitHub committed 2025-12-06 14:39:00 +08:00
1 parent ce664cce5c
commit 374138ac6b
34 files changed
+794 -75

No files matched your search

@@ -0,0 +1,97 @@
if (!(
node.type === "ImportExpression" ||
node.type === "TSImportType" ||
node.type === "TSExternalModuleReference"));
while (!(
node.type === "ImportExpression" ||
node.type === "TSImportType" ||
node.type === "TSExternalModuleReference"));
do {} while (!(
node.type === "ImportExpression" ||
node.type === "TSImportType" ||
node.type === "TSExternalModuleReference"));
if (!!(
node.type === "ImportExpression" ||
node.type === "TSImportType" ||
node.type === "TSExternalModuleReference"));
if(typeof (
node.type === "ImportExpression" ||
node.type === "TSImportType" ||
node.type === "TSExternalModuleReference"));
if ( // comment
!!(
node.type === "ImportExpression" ||
node.type === "TSImportType" ||
node.type === "TSExternalModuleReference"));
if (! // comment
!(
node.type === "ImportExpression" ||
node.type === "TSImportType" ||
node.type === "TSExternalModuleReference"));
if (!! // comment
(
node.type === "ImportExpression" ||
node.type === "TSImportType" ||
node.type === "TSExternalModuleReference"));
if(1){
//
}else {if(! (
node.type === "ImportExpression" ||
node.type === "TSImportType" ||
node.type === "TSExternalModuleReference")) do {
//
} while (! (
node.type === "ImportExpression" ||
node.type === "TSImportType" ||
node.type === "TSExternalModuleReference")) else if (! (
node.type === "ImportExpression" ||
node.type === "TSImportType" ||
node.type === "TSExternalModuleReference")) while (! (
node.type === "ImportExpression" ||
node.type === "TSImportType" ||
node.type === "TSExternalModuleReference")) {
//
}}
if(2){
//
}else {if( (
node.type === "ImportExpression" ||
node.type === "TSImportType" ||
node.type === "TSExternalModuleReference")) do {
//
} while ( (
node.type === "ImportExpression" ||
node.type === "TSImportType" ||
node.type === "TSExternalModuleReference")) else if ( (
node.type === "ImportExpression" ||
node.type === "TSImportType" ||
node.type === "TSExternalModuleReference")) while ( (
node.type === "ImportExpression" ||
node.type === "TSImportType" ||
node.type === "TSExternalModuleReference")) {
//
}}
if ((
node.type === "ImportExpression" &&
node.type === "TSImportType" &&
node.type === "TSExternalModuleReference") || !(
node.type === "ImportExpression" &&
node.type === "TSImportType" &&
node.type === "TSExternalModuleReference")) {}else if (!(
node.type === "ImportExpression" &&
node.type === "TSImportType" &&
node.type === "TSExternalModuleReference") || (
node.type === "ImportExpression" &&
node.type === "TSImportType" &&
node.type === "TSExternalModuleReference")){}