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

Update babel-eslint to 10.0.1. PR-URL: https://github.com/nodejs/node/pull/26347 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
11 lines
311 B
JavaScript
11 lines
311 B
JavaScript
"use strict";
|
|
|
|
var convertTemplateType = require("./convertTemplateType");
|
|
var toToken = require("./toToken");
|
|
|
|
module.exports = function(tokens, tt, code) {
|
|
return convertTemplateType(tokens, tt)
|
|
.filter(t => t.type !== "CommentLine" && t.type !== "CommentBlock")
|
|
.map(t => toToken(t, tt, code));
|
|
};
|