Enable unicorn/no-negated-comparison rule (#19372)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-06-16 04:11:58 +08:00
1 parent cf5dec976a
commit 3d2e9ed9ec
2 files changed
+1 -2

No files matched your search

-1
View File
@@ -323,7 +323,6 @@ const configs = [
"unicorn/no-negated-array-predicate": "off",
"unicorn/no-break-in-nested-loop": "off",
"unicorn/no-declarations-before-early-exit": "off",
"unicorn/no-negated-comparison": "off",
"unicorn/prefer-early-return": "off",
"unicorn/no-undeclared-class-members": "off",
"unicorn/no-useless-boolean-cast": "off",
+1 -1
View File
@@ -289,7 +289,7 @@ function handleClassComments({
if (isClassLikeNode(enclosingNode)) {
// @ts-expect-error -- Safe
const { decorators } = enclosingNode;
if (isNonEmptyArray(decorators) && !(followingNode?.type === "Decorator")) {
if (isNonEmptyArray(decorators) && followingNode?.type !== "Decorator") {
addTrailingComment(decorators.at(-1), comment);
return true;
}