mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Fixed linting error
This commit is contained in:
parent
88c11ffbb2
commit
374b43ceab
2 changed files with 1 additions and 4 deletions
|
@ -50,7 +50,7 @@ const getEmailData = async (postModel, members = []) => {
|
|||
const {groups: {memberProp}} = replacementStr.match(REPLACEMENT_STRING_REGEX);
|
||||
if (ALLOWED_REPLACEMENTS.includes(memberProp)) {
|
||||
const varName = `replacement_${count}`;
|
||||
count++;
|
||||
count = count + 1;
|
||||
return `%recipient.${varName}`;
|
||||
}
|
||||
return replacementStr;
|
||||
|
|
|
@ -11,9 +11,6 @@
|
|||
"eslint:recommended",
|
||||
"plugin:ghost/test"
|
||||
],
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2017
|
||||
},
|
||||
"rules": {
|
||||
// these rules were were not previously enforced in our custom rules,
|
||||
// they're turned off here because they _are_ enforced in our plugin.
|
||||
|
|
Loading…
Add table
Reference in a new issue