We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 954f2eb commit e4ab056Copy full SHA for e4ab056
1 file changed
lib/rules/template-no-mut-helper.js
@@ -36,7 +36,7 @@ module.exports = {
36
// don't end up with `{{{{...}}}}` in the error message.
37
const setterAlternative =
38
typeof rawSetterAlternative === 'string'
39
- ? rawSetterAlternative.replace(/^\{\{([\S\s]*)\}\}$/, '$1').trim()
+ ? rawSetterAlternative.replace(/^{{([\S\s]*)}}$/, '$1').trim()
40
: rawSetterAlternative;
41
const message = setterAlternative
42
? `Do not use the (mut) helper. Consider using a JS action or {{${setterAlternative}}} instead.`
0 commit comments