-
E.g.:
```
description: `Hello!`
```
**References:**
- https://github.com/xojs/eslint-config-xo/commit/ea693f32b4875928d410fbbb208152fb527be3d3
- https://eslint.org/docs/latest/rules/quotes#a…
-
**Describe the bug**
We are working to adopt `eslint-plugin-lingui` and most rules are fine, however `lingui/text-restrictions` is pretty much unusable.
Our source code contains a lot of templat…
Bertg updated
1 month ago
-
As of right now, template literals are modeled after ECMAScript, e.g.:
```
export component Foo {
bar: string
return `
Hello ${bar}
`
}
```
Imho this causes two problems:
1. …
-
It's very easy to create security issues when using template literals....
For example
````
const email = 'test@acme.org';
const res = sql.query`select * from where email = ${email}`;
-
A lot of modern frontend (often web-component-based) frameworks make use of JS/TS tagged template literals for inline html/css. To the point where most editors (and even GitHub) recognize it and apply…
-
Are template strings supported? I am getting the following error from Grunt:
`Fatal error: myTemplateStringVar is not defined`
My variable looks like below and runs fine in all three major web b…
-
Things like this:
```
my foo = 42;
say(`The value truly is ${foo}, and no kidding!`);
```
I think it's a nice realistic case for something slang-like that calls back into the main language (more exa…
masak updated
6 years ago
-
Is it possible to minify javascript strings like the following example:
```
return`
aaaaaa
`;
```
```
const style=`
.aaa {
di…
-
**Description**
Parse error when using Javascript [template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#Browser_compatibility).
"Template literal…
-
So, the current standardjs config enforces:
```javascript
let init = () => {}
let text = 'asdf'
funky`
${init}
${text}
${o => o.attr || 'default'}
`
```
And does not allow:
``…