0
Fork 0
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:
Kevin Ansfield 2020-04-17 11:32:18 +01:00
parent 88c11ffbb2
commit 374b43ceab
2 changed files with 1 additions and 4 deletions

View file

@ -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;

View file

@ -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.