Skip to content

Commit 10cd674

Browse files
committed
apply lint
1 parent ee4232d commit 10cd674

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/cjs/rules/exportPrivateDeclareRule.cts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,12 @@ const exportRestrictRule: Rule.RuleModule = {
135135
return;
136136
}
137137

138-
const privateAnnotatedComment = parentNode.comments.find((s) => (
139-
s.loc?.end.line !== undefined &&
140-
s.loc.end.line === (declaration.loc?.start.line || 0) - 1 &&
141-
s.value.includes("@private")
142-
));
138+
const privateAnnotatedComment = parentNode.comments.find(
139+
(s) =>
140+
s.loc?.end.line !== undefined &&
141+
s.loc.end.line === (declaration.loc?.start.line || 0) - 1 &&
142+
s.value.includes("@private"),
143+
);
143144
if (privateAnnotatedComment === undefined || node.range === undefined) {
144145
return;
145146
}

src/esm/rules/exportPrivateDeclareRule.mts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,12 @@ const exportRestrictRule: Rule.RuleModule = {
134134
if (!declaration?.loc) {
135135
return;
136136
}
137-
const privateAnnotatedComment = parentNode.comments.find((s) => (
138-
s.loc?.end.line !== undefined &&
139-
s.loc.end.line === (declaration.loc?.start.line || 0) - 1 &&
140-
s.value.includes("@private")
141-
));
137+
const privateAnnotatedComment = parentNode.comments.find(
138+
(s) =>
139+
s.loc?.end.line !== undefined &&
140+
s.loc.end.line === (declaration.loc?.start.line || 0) - 1 &&
141+
s.value.includes("@private"),
142+
);
142143

143144
if (privateAnnotatedComment === undefined || node.range === undefined) {
144145
return;

0 commit comments

Comments
 (0)