eslint-plugin-ng-test-identifier
Version:
add test identifier attribute to angular components
16 lines • 745 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTemplateParserServices = exports.ensureTemplateParser = void 0;
function ensureTemplateParser(context) {
if (!context.parserServices?.convertNodeSourceSpanToLoc ||
!context.parserServices?.convertElementSourceSpanToLoc) {
throw new Error("You have used a rule which requires '@angular-eslint/template-parser' to be used as the 'parser' in your ESLint config.");
}
}
exports.ensureTemplateParser = ensureTemplateParser;
function getTemplateParserServices(context) {
ensureTemplateParser(context);
return context.parserServices;
}
exports.getTemplateParserServices = getTemplateParserServices;
//# sourceMappingURL=utils.js.map
;