tslib icon indicating copy to clipboard operation
tslib copied to clipboard

Lint tslib

Open weswigham opened this issue 6 years ago • 0 comments

Helper style is somewhat inconsistent, and there are some trailing semicolons in some places but not others, for example in the es6 version:

export function __asyncValues(o) {
    if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
    var m = o[Symbol.asyncIterator];
    return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator]();
}

export function __makeTemplateObject(cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};

(__makeTemplateObject has an unneeded semicolon, __asyncValues right above it does not)

weswigham avatar Feb 27 '18 21:02 weswigham