[TASK] update prettier-plugin-sfmc to 2.3.0 and eslint-plugin-sfmc to 5.4.0
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- eslint, javascript, node.js
- Domain
- build-system, tooling
Research direction
Start with package.json and the lockfile, then check the Unicorn compatibility cap for eslint-plugin-sfmc 5.4.0 before changing eslint-plugin-unicorn. Update both pinned versions and refresh the lockfile. Run the tests and inspect retrieve fixtures containing Handlebars; done when the checks pass and expected helper casing changes are accounted for.
Written by the indexing model from the issue text.
Description
What
mcdev pins two formatting and linting packages to exact versions. Both got a new release that knows the Handlebars helpers Marketing Cloud Next added with API version 68:
| Package | Pinned | New |
|---|---|---|
prettier-plugin-sfmc |
2.2.1 | 2.3.0 |
eslint-plugin-sfmc |
5.3.0 | 5.4.0 |
Why it matters
- Formatting on retrieve and deploy: with 2.3.0 the formatter recases the 22 new helper names to their catalogue spelling, for example
{{MD5 x}}becomes{{md5 x}}. Named arguments such ascharset="UTF-8"are left as they are. - Linting: with 5.4.0 the Handlebars rules know the 22 new helpers (
md5,sha256,base64Encode,regExMatch,datePart,buildUrl,encodeURIComponent,isEmailAddress, …). With 5.3.0 they are reported as unknown helpers. TheapiVersionoption now also names 68 (Winter '27). - Projects created with
mcdev init/mcdev upgradeinherit these versions.
To do
- Bump
prettier-plugin-sfmcto 2.3.0 andeslint-plugin-sfmcto 5.4.0 inpackage.json, refresh the lockfile - Check the Unicorn compatibility cap for
eslint-plugin-sfmc5.4.0 before touchingeslint-plugin-unicorn - Run tests; retrieve fixtures that contain Handlebars may change in the casing of the new helper names
Release notes of the two packages
- Dominant language
- JavaScript
- Stars
- 166
- Forks
- 50
- Avg merge
- 11h 4m
- Merged PRs (30d)
- 36
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Accenture/sfmc-devtools
-
e/DevOps enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Accenture/sfmc-devtools#2795 ·
Maintainers usually reply within 1 day
-
c/INIT chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Accenture/sfmc-devtools#2793 ·
Maintainers usually reply within 1 day
-
bug c/Generic validationRule
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Accenture/sfmc-devtools#2794 ·
Maintainers usually reply within 1 day
-
bug c/automation
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Accenture/sfmc-devtools#2792 ·
Maintainers usually reply within 1 day
-
[FEATURE] transactionalPush: check options.customKeys against the app before deployPossibly taken @orshih6 claimed this 8 days ago. Openc/mobilePushApp c/transactionalPush enhancement
Difficulty 3/5 1-2 days Newbie friendliness 74/100
Accenture/sfmc-devtools#2735 ·
Maintainers usually reply within 1 day
All issues in Accenture/sfmc-devtools
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Life-Framework/Life-Framework#7017 ·
Maintainers usually reply within 1 day
-
agent/guide documentation help wanted stage/010-actionable
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
kubestellar/console-kb#4003 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
FilOzone/synapse-sdk#1201 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue task
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
NSC-Tech-Hub/nscth-static-website#107 ·
Maintainers usually reply within 1 day