mirror of
https://github.com/nodejs/node.git
synced 2025-05-07 15:35:41 +00:00

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>
19 lines
501 B
JavaScript
19 lines
501 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
function join(tokens) {
|
|
return tokens.start + tokens.delimiter + tokens.postDelimiter + tokens.tag + tokens.postTag + tokens.type + tokens.postType + tokens.name + tokens.postName + tokens.description + tokens.end + tokens.lineEnd;
|
|
}
|
|
|
|
function getStringifier() {
|
|
return block => block.source.map(({
|
|
tokens
|
|
}) => join(tokens)).join('\n');
|
|
}
|
|
|
|
exports.default = getStringifier;
|
|
//# sourceMappingURL=index.cjs.map
|