You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way for me to make template rules work with pug?
I'm willing do extend the rules if that's necessary, but would need some direction to do that.
Thanks.
The text was updated successfully, but these errors were encountered:
It seems to be working okay more or less.
Here's my .codelyzer.js config:
constpug=require('pug');module.exports={/** * Transforming pug templates for codelyzer. */transformTemplate(code,url){constresult={code: code,url: url};if(url&&/\.pug$/.test(url)){consttransformed=pug.render(code);result.source=code;result.code=transformed;}returnresult;},};
Unfortunately I wasn't able to find anything that would generate proper sourcemaps, which means that numbers in tslint logs are off, but that's something I can live with.
Hey,
I'm trying to use template rules, such as 'template-use-track-by-function' on my project.
The problem is that I'm using pug in my templates.
I'm using https://github.com/danguilherme/ng-cli-pug-loader.
Is there any way for me to make template rules work with pug?
I'm willing do extend the rules if that's necessary, but would need some direction to do that.
Thanks.
The text was updated successfully, but these errors were encountered: