node/tools/eslint/node_modules/@babel/eslint-parser/lib/convert/convertComments.cjs
Michaël Zasso 2eff28fb7a
tools: move ESLint to tools/eslint
Greatly simplify how ESLint and its plugins are installed.

PR-URL: https://github.com/nodejs/node/pull/53413
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-06-19 19:54:08 +00:00

11 lines
298 B
JavaScript

"use strict";
module.exports = function convertComments(comments) {
for (const comment of comments) {
comment.type = comment.type === "CommentBlock" ? "Block" : "Line";
comment.range || (comment.range = [comment.start, comment.end]);
}
};
//# sourceMappingURL=convertComments.cjs.map