jeudi 11 janvier 2018

Is it possible to use ESLint to lint Handlebars template?

I'm trying to write an ESLint plugin for Ember to check if the handlebars template together with javascript code has no issues.

To achieve that, I need to lint .js component code together with .hbs component template.

I don't have much experience with writing ESLint rules, but I guess all I need is to somehow turn those .hbs files into AST and then lint it as usually, but I don't know how to do that.

Are those AST produced by Js and Handlebars even compatible?




Aucun commentaire:

Enregistrer un commentaire