ember-tooling / ember-eslint-parser

This is the eslint parser for ember's gjs and gts files (using <template>).
4 stars 4 forks source link

Parse error when template contains `${` #75

Closed chancancode closed 7 months ago

chancancode commented 7 months ago
<template>
  Price: ${{this.price}}
</template>
chancancode commented 7 months ago

Problem is in here: https://github.com/NullVoxPopuli/ember-eslint-parser/blob/main/src/parser/transforms.js#L578

chancancode commented 7 months ago

Or rather, this needs to escape ${ into \${: https://github.com/NullVoxPopuli/ember-eslint-parser/blob/main/src/parser/transforms.js#L573