Commits
Click on a commit to change the comparison rangefix(ast/estree): fix span for `TemplateElement` in TS AST (#10315)
Part of #9705.
TS-ESLint differs from Acorn in the `span` of `TemplateElement`.
TS-ESLint includes the preceding `` ` `` or `}` and following `${` or `` ` `` in the span.
```js
const template = `abc${x}def${x}ghi`;
// Acorn: ^^^ ^^^ ^^^
// TS-ESLint: ^^^^^^ ^^^^^^ ^^^^^
```
Make the span follow TS-ESLint in the TS AST.8 months ago
by overlookmotel