Skip to content

Commit

Permalink
fix include linter
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinFrazar committed Jun 21, 2024
1 parent 4aad66e commit 7276269
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion server/remark-includes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,6 @@ export default function remarkIncludes({
vfile,
startIndex: lastErrorIndex,
ruleId: "includes",
source: "remark-lint",
});
};
}
1 change: 0 additions & 1 deletion server/remark-variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ export default function remarkVariables({
vfile,
startIndex: lastErrorIndex,
ruleId: "variables",
source: "remark-lint",
});
};
}
3 changes: 0 additions & 3 deletions server/update-vfile-messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,19 @@ interface UpdateMessagesOptions {
vfile: VFile;
startIndex: number;
ruleId: string;
source: string;
}

export default function updateMessages({
vfile,
startIndex,
ruleId,
source,
}: UpdateMessagesOptions) {
let index = startIndex;

while (index < vfile.messages.length) {
const message = vfile.messages[index];

message.ruleId = ruleId;
message.source = source;
message.fatal = true;

index++;
Expand Down

0 comments on commit 7276269

Please sign in to comment.