Enable unicorn/no-negated-comparison rule (#19372)
This commit is contained in:
1 parent
cf5dec976a
commit
3d2e9ed9ec
2 files changed
+1
-2
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user