eslint-plugin-sfmc 5.5.0 → 5.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -202,11 +202,11 @@ Severities above are the same in `embedded`, `strict`, `embedded-next`, and `str
202
202
 
203
203
  [`eslint-plugin-unicorn`](https://github.com/sindresorhus/eslint-plugin-unicorn) is a high-quality, widely used plugin that we **strongly recommend** — but it is built for modern JavaScript, not SFMC's **SSJS** runtime. SFMC SSJS runs on a JINT-based ES3/ES5-era engine that lacks many built-ins (`Array#includes`, `String#startsWith`, `Set`, `Map`, `Math.trunc`, spread `...`, ES modules, `async`/`await`, …). CloudPage probes found zero-argument string `slice()` throwing after a working `"Hello".substring()` call. Native `Object.fromEntries`, `toReversed`, `toSorted`, `toSpliced`, `replaceAll`, `matchAll` and `structuredClone` were unavailable: `typeof` returned `undefined` and direct calls threw, both without Core and with Core 1.1.1 or 1.1.5.
204
204
 
205
- For Unicorn **80.0.0**, **83** of its **340** enabled recommended rules must not run on SSJS: API/syntax incompatibilities, recorded runtime-semantic hazards, and diagnostic-only pressure toward unsafe changes. The other **257** were audited as safe for SSJS; this is not a blanket runtime-safety guarantee. The v80 audit also found 19 rules whose fixes or suggestions were already unsafe in v76 — 15 unchanged, 4 reaching more code in v80 (for example `value ||= "none"`, `1_133_955`, `"\u{E9}"`, `replaceAll`, arrow functions); they are off for both versions.
205
+ For Unicorn **80.0.0**, **87** of its **340** enabled recommended rules must not run on SSJS: API/syntax incompatibilities, recorded runtime-semantic hazards, and diagnostic-only pressure toward unsafe changes. `prefer-keyboard-event-key` is also off, because its unicorn 76 autofix is unsafe. The other **252** were audited as safe for SSJS; this is not a blanket runtime-safety guarantee. Of its **39** other current rules, which run only if you turn them on, **24** were audited as safe, **8** stay off (for example `prefer-temporal` and `prefer-error-is-error`) and **7** do not support JavaScript. The v80 audit also found 20 rules whose fixes or suggestions were already unsafe in v76 — 16 unchanged, 4 reaching more code in v80 (for example `value ||= "none"`, `1_133_955`, `"\u{E9}"`, `replaceAll`, arrow functions); they are off for both versions. A later check found four more in v80, plus `prefer-keyboard-event-key` in v76, whose fixes or suggestions write control characters in strings as `"\u{1b}"`-style escapes (for example the `no-useless-concat` autofix); they are off too.
206
206
 
207
207
  **Supported unicorn versions: `>=57.0.0 <=80.0.0`** (optional peer dependency). 57.0.0 is the first ESM-only, flat-config-only unicorn. The ceiling is exactly the newest audited version: every unicorn release, patches included, can change what an autofix writes, so it is audited before `eslint-plugin-sfmc` allows it. Unicorn 76 and 80 were audited rule by rule; 77–79 are covered by the 76 → 80 comparison, and 57–75 were not audited. Unicorn 66 and later require ESLint **10.4.0+**; the base SFMC plugin supports ESLint 10.0.0+.
208
208
 
209
- Add your unicorn config, then spread `sfmc.unicornSsjs(eslintPluginUnicorn)` **after** it. For standalone `.ssjs` files and SSJS embedded in HTML, it turns off every unicorn rule that no audit marked safe — including rules a newer unicorn adds or renames, and rules you enabled yourself. The audited rules keep whatever your unicorn config sets. Pass the same unicorn object your config uses.
209
+ Add your unicorn config, then spread `sfmc.unicornSsjs(eslintPluginUnicorn)` **after** it. For standalone `.ssjs` files and SSJS embedded in HTML, it turns off every unicorn rule that the audits did not mark safe — including rules a newer unicorn adds or renames, and rules you enabled yourself. The rules audited as safe keep whatever your unicorn config sets. Pass the same unicorn object your config uses.
210
210
 
211
211
  ```js
212
212
  import sfmc from 'eslint-plugin-sfmc';
@@ -226,7 +226,7 @@ export default [
226
226
 
227
227
  Scope the complete Unicorn preset to JavaScript/SSJS, not custom AMPscript, Handlebars or MSO ASTs. Clearing its builtin map prevents modern globals leaking into SSJS; other matching configs can still supply globals. The SFMC presets do not enable general `no-undef` checking, and extracted HTML server blocks are linted independently.
228
228
 
229
- The earlier setup still works: `sfmc.configs['unicorn-ssjs']` (`**/*.ssjs`) and `sfmc.configs['unicorn-ssjs-embedded']` (`**/*.html/*.js`) turn off exactly the 83 rules, but leave any rule outside the audits on. If you don't use unicorn, omit all of these. For the full rule-by-rule breakdown (with rationale and SFMC evidence links), see [docs/unicorn-compatibility.md](docs/unicorn-compatibility.md).
229
+ The earlier setup still works: `sfmc.configs['unicorn-ssjs']` (`**/*.ssjs`) and `sfmc.configs['unicorn-ssjs-embedded']` (`**/*.html/*.js`) turn off exactly the 88 recommended rules, but not unaudited rules or the 8 unsafe rules outside the recommended set. If you don't use unicorn, omit all of these. For the full rule-by-rule breakdown (with rationale and SFMC evidence links), see [docs/unicorn-compatibility.md](docs/unicorn-compatibility.md).
230
230
 
231
231
  ## Processors
232
232
 
@@ -2,14 +2,14 @@
2
2
 
3
3
  > **Compatibility analysis for [`eslint-plugin-unicorn@80.0.0`](https://github.com/sindresorhus/eslint-plugin-unicorn), re-audited from the v76.0.0 baseline. Both 76 and 80 are supported.**
4
4
  >
5
- > ⚠️ **Version warning:** This classification covers `eslint-plugin-unicorn` **v76.0.0** (315 enabled recommended rules) and **v80.0.0** (340). `eslint-plugin-sfmc` declares the optional peer range `>=57.0.0 <=80.0.0`: the ceiling is exactly the newest audited version, because any unicorn release, patches included, can change what an autofix writes. `sfmc.unicornSsjs()` turns off every rule that is not audited, so a renamed or new rule cannot slip through; changed behaviour of an audited rule still needs a re-audit. Unicorn 77–79 are covered by the 76 → 80 comparison, and 57–75 were not audited (their rule names match the 76 audit, but their fixes were not checked). The per-version verdicts live in `audit/unicorn/<version>.json` in the repository, and the test suite fails until an installed unicorn version has its own audit file.
5
+ > ⚠️ **Version warning:** This classification covers `eslint-plugin-unicorn` **v76.0.0** (315 enabled recommended rules and 42 others) and **v80.0.0** (340 and 39 others). Deprecated rules are not audited, and `unicornSsjs()` turns them off. `eslint-plugin-sfmc` declares the optional peer range `>=57.0.0 <=80.0.0`: the ceiling is exactly the newest audited version, because any unicorn release, patches included, can change what an autofix writes. `sfmc.unicornSsjs()` turns off every rule that is not audited, so a renamed or new rule cannot slip through; changed behaviour of an audited rule still needs a re-audit. Unicorn 77–79 are covered by the 76 → 80 comparison, and 57–75 were not audited (their rule names match the 76 audit, but their fixes were not checked). The per-version verdicts live in `audit/unicorn/<version>.json` in the repository, and the test suite fails until an installed unicorn version has its own audit file.
6
6
 
7
7
  `eslint-plugin-unicorn` is an excellent, actively maintained plugin that we **strongly recommend** — but it targets modern JavaScript engines, not the Salesforce Marketing Cloud **SSJS** runtime. SFMC SSJS runs on a JINT-based ES3/ES5-era engine that is missing many built-ins (`Array#includes`, `String#startsWith`, `Set`, `Map`, `Math.trunc`, spread `...`, ES modules, `async`/`await`, …). CloudPage probes also found native `Object.fromEntries`, `matchAll` and `structuredClone` unavailable, both without Core and with Core 1.1.1 or 1.1.5. See the SFMC evidence pages:
8
8
 
9
9
  - **ECMAScript built-ins support** — <https://ssjs.guide/ecmascript-builtins/>
10
10
  - **Engine limitations** — <https://ssjs.guide/engine-limitations/>
11
11
 
12
- Of unicorn's **340** enabled recommended rules (v80.0.0), **257** remain active (including conditional and inert cases; not a blanket runtime-safety guarantee) and **83** must be turned off. `sfmc.unicornSsjs(unicorn)` keeps only the audited rules for SSJS files and turns every other unicorn rule off; the older override configs (`unicorn-ssjs` / `unicorn-ssjs-embedded`) turn off exactly those 83. `eslint-plugin-sfmc` does **not** depend on or load unicorn — you pass in the unicorn plugin you already use. See [Section 1](#section-1--how-to-apply).
12
+ Of unicorn's **340** enabled recommended rules (v80.0.0), **253** remain active (including conditional and inert cases; not a blanket runtime-safety guarantee) and **87** must be turned off. `prefer-keyboard-event-key` is also turned off, because its unicorn 76 autofix is unsafe, so **252** stay on for SSJS and **88** are turned off. Of its **39** other current rules, which run only if you turn them on, **24** are active, **8** must stay off and **7** do not support JavaScript ([Section 4](#section-4--rules-outside-the-recommended-set)). `sfmc.unicornSsjs(unicorn)` keeps only the audited rules for SSJS files and turns every other unicorn rule off; the older override configs (`unicorn-ssjs` / `unicorn-ssjs-embedded`) turn off exactly those 88. `eslint-plugin-sfmc` does **not** depend on or load unicorn — you pass in the unicorn plugin you already use. See [Section 1](#section-1--how-to-apply).
13
13
 
14
14
  ---
15
15
 
@@ -35,13 +35,13 @@ export default [
35
35
  ];
36
36
  ```
37
37
 
38
- What `sfmc.unicornSsjs(unicorn)` returns: one config for `**/*.ssjs` and `**/*.html/*.js` (SSJS extracted from `<script runat="server">`) that registers the unicorn object you pass and sets every unicorn rule to `off` except the 257 audited as safe (Section 3). Those keep whatever your own unicorn config sets, including rules you turned off or configured. Rules outside the audits are off on SSJS even when you enabled them yourself; that is deliberate, so a new or renamed rule cannot reach SSJS before it is audited. Because it only ever writes `off`, it never fails on a unicorn version that lacks a rule.
38
+ What `sfmc.unicornSsjs(unicorn)` returns: one config for `**/*.ssjs` and `**/*.html/*.js` (SSJS extracted from `<script runat="server">`) that registers the unicorn object you pass and sets every unicorn rule to `off` except the 276 audited as safe: 252 recommended rules (Section 3) and 24 others (Section 4). It never turns a rule on, so a Section 4 rule runs only if your own config enables it. These 276 rules keep whatever your own unicorn config sets, including rules you turned off or configured. Rules outside the audits are off on SSJS even when you enabled them yourself; that is deliberate, so a new or renamed rule cannot reach SSJS before it is audited. Because it only ever writes `off`, it never fails on a unicorn version that lacks a rule.
39
39
 
40
40
  Keep the full recommended rule set, but scope it to JavaScript and SSJS (including extracted HTML JavaScript). AMPscript, Handlebars and MSO use custom ASTs that JavaScript-only Unicorn visitors cannot traverse safely. Replace Unicorn's builtin globals within this copied preset with an empty map so the language/runtime configs own globals; this does not remove globals from other matching config entries. The SFMC presets do not enable general `no-undef` checking, and separate HTML server blocks are linted independently.
41
41
 
42
42
  ### Earlier setup: the two override configs
43
43
 
44
- The override configs still work. They turn off exactly the 83 rules of Section 2 but leave every rule outside the audits on, so they protect less than `unicornSsjs()`. They are plain rules objects without a `plugins` key; insert each directly **after** your unicorn config:
44
+ The override configs still work. They turn off exactly the 88 rules of Section 2. They do not turn off unaudited rules or the unsafe rules of Section 4, so they protect less than `unicornSsjs()`. They are plain rules objects without a `plugins` key; insert each directly **after** your unicorn config:
45
45
 
46
46
  | Config | Applies to |
47
47
  |---|---|
@@ -83,9 +83,9 @@ export default defineConfig(
83
83
 
84
84
  ---
85
85
 
86
- ## Section 2 — Rules to override for SSJS (83)
86
+ ## Section 2 — Rules to override for SSJS (88)
87
87
 
88
- These 83 recommended rules introduce unavailable or unresolved APIs, conflict with recorded runtime semantics, pressure users toward unsafe changes through diagnostics, or introduce unsupported syntax. Some paths are conditionally inert under strict ES5 parsing. The override config sets each to `'off'` for SSJS. All 83 are enabled in unicorn v80.0.0's recommended configuration. Rows marked **(80 audit)** were added by the v80 re-audit; "since 76" means the same behaviour already existed in v76 and was missed by the v76 classification.
88
+ These 88 recommended rules introduce unavailable or unresolved APIs, conflict with recorded runtime semantics, pressure users toward unsafe changes through diagnostics, or introduce unsupported syntax. Some paths are conditionally inert under strict ES5 parsing. The override config sets each to `'off'` for SSJS. All 88 are enabled in unicorn v80.0.0's recommended configuration. Rows marked **(80 audit)** were added by the v80 re-audit, rows marked **(later finding)** on 2026-12-02; "since 76" means the same behaviour already existed in v76 and was missed by the v76 classification.
89
89
 
90
90
  ### Group A — API, runtime-semantic and diagnostic protections (63)
91
91
 
@@ -155,7 +155,7 @@ These 83 recommended rules introduce unavailable or unresolved APIs, conflict wi
155
155
  | [`prefer-single-replace`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-single-replace.md) | **(80 audit, since 76)** Autofix merges chained single-character `.replace()` calls into native `String#replaceAll`, unavailable in CloudPage probes. 80 also fixes chains that contain comments. | [ECMAScript built-ins](https://ssjs.guide/ecmascript-builtins/) |
156
156
  | [`prefer-url-search-parameters`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-url-search-parameters.md) | **(80 audit, since 76)** Fires on ordinary query-string splitting (`query.split("&")…`) and suggests `new URLSearchParams(...)`, which does not exist in SSJS (verified live: `URL` and `URLSearchParams` are `undefined`); 80 also reports the comment-containing cases. Same treatment as the diagnostic-only pressure of `prefer-includes-over-repeated-comparisons`. | [ECMAScript built-ins](https://ssjs.guide/ecmascript-builtins/) |
157
157
 
158
- ### Group B — introduce or require ES6+ syntax / ES-module / async constructs (20)
158
+ ### Group B — introduce or require ES6+ syntax / ES-module / async constructs (25)
159
159
 
160
160
  | Rule | Why it breaks SSJS | SFMC evidence |
161
161
  |---|---|---|
@@ -179,6 +179,11 @@ These 83 recommended rules introduce unavailable or unresolved APIs, conflict wi
179
179
  | [`prefer-logical-operator-over-ternary`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-logical-operator-over-ternary.md) | **(80 audit, since 76)** Editor suggestions emit ES2020 `??` (and `?.`) for plain ES5 ternaries such as `value ? value : "none"`; 80 adds more cases. Not ES5 syntax. | [Engine limitations](https://ssjs.guide/engine-limitations/) |
180
180
  | [`prefer-simple-sort-comparator`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-simple-sort-comparator.md) | **(80 audit, since 76)** Its suggestion replaces an if/return comparator with the arrow function `(a, b) => a - b`, ES2015 syntax. | [Engine limitations](https://ssjs.guide/engine-limitations/) |
181
181
  | [`prefer-unicode-code-point-escapes`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-unicode-code-point-escapes.md) | **(80 audit, since 76)** Autofix rewrites `\u00e9` to ES2015 code-point escape `\u{E9}` (and regex escapes with the `u` flag); not ES5 syntax. 80 skips only printable-ASCII and short escapes. | [Engine limitations](https://ssjs.guide/engine-limitations/) |
182
+ | [`no-useless-concat`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-concat.md) | **(later finding, 76 and 80)** Autofix joins string literals and writes control characters (other than short escapes such as `\n`), DEL and U+2028/U+2029 in the result as ES2015 `\u{…}` escapes, e.g. `"a" + "b\x1b"` → `'ab\u{1b}'`. The engine cannot parse them. | [Engine limitations](https://ssjs.guide/engine-limitations/) |
183
+ | [`better-dom-traversing`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/better-dom-traversing.md) | **(later finding, 76 and 80)** Its suggestion merges chained `querySelector` calls into one selector string and writes control characters (other than short escapes such as `\n`), DEL and U+2028/U+2029 as ES2015 `\u{…}` escapes, e.g. `el.querySelector("a\x1b").querySelector("b\x1b")` → `el.querySelector(":scope a\u{1b} b\u{1b}")`. The engine cannot parse them. | [Engine limitations](https://ssjs.guide/engine-limitations/) |
184
+ | [`no-invalid-dom-token`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-dom-token.md) | **(later finding, new in 80)** Its suggestion splits a `classList` token string into separate string arguments and writes control characters (other than short escapes such as `\n`), DEL and U+2028/U+2029 as ES2015 `\u{…}` escapes, e.g. `el.classList.add("a\x1b b")` → `el.classList.add('a\u{1b}', 'b')`. The engine cannot parse them. | [Engine limitations](https://ssjs.guide/engine-limitations/) |
185
+ | [`no-invalid-style-set-property`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-style-set-property.md) | **(later finding, new in 80)** Its suggestion moves `!important` out of a `style.setProperty` value into a third argument and writes control characters (other than short escapes such as `\n`), DEL and U+2028/U+2029 as ES2015 `\u{…}` escapes, e.g. `"red\x1b !important"` → `'red\u{1b}', 'important'`. The engine cannot parse them. | [Engine limitations](https://ssjs.guide/engine-limitations/) |
186
+ | [`prefer-keyboard-event-key`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-keyboard-event-key.md) | **(later finding, 76 only)** In unicorn 76 its autofix turns key codes of control characters into `key` comparisons written as ES2015 `\u{…}` escapes, e.g. `e.keyCode === 127` → `e.key === '\u{7f}'`. Unicorn 80 wrote none for key codes 0–255, but the override protects both versions. | [Engine limitations](https://ssjs.guide/engine-limitations/) |
182
187
 
183
188
  > **Regex caution:** Availability of `RegExp#test` does not establish equivalence with `.match()` or `.search()`. Recorded SSJS no-match arrays, zero-result search behavior and conflicting global-regex state evidence must be checked against the actual transformation predicate.
184
189
 
@@ -198,6 +203,8 @@ Every rule in v80's recommended set was compared with v76: the rule source and t
198
203
  | Already off since 76 | 60 | off |
199
204
  | Removed from the recommended set | 1 (`no-async-promise-finally`) | — |
200
205
 
206
+ These counts are from 2026-11-29. On 2026-12-02 five of the rules counted active here were turned off for SSJS because their fixes or suggestions write `\u{…}` escapes (Section 2): from "Changed, still safe" `no-useless-concat`, `better-dom-traversing` and `prefer-keyboard-event-key`, and from "New in 80" `no-invalid-dom-token` and `no-invalid-style-set-property`. The 80 verdict of `prefer-keyboard-event-key` stays active; it is off because of its 76 autofix.
207
+
201
208
  - **Changed for the worse:** `no-array-sort-for-min-max`, `no-immediate-mutation`, `prefer-single-replace`, `prefer-url-search-parameters`. Their v76 fixes or suggestions already emitted `replaceAll`, spread, computed keys or `URLSearchParams`; v80 now also reports and fixes code that contains comments, and `no-immediate-mutation` merges declarations with the following assignment.
202
209
  - **Unsafe since 76:** `consistent-date-clone`, `dom-node-dataset`, `logical-assignment-operators`, `no-accidental-bitwise-operator`, `no-array-callback-reference`, `no-array-method-this-argument`, `no-boolean-sort-comparator`, `no-computed-property-existence-check`, `no-useless-undefined`, `no-xor-as-exponentiation`, `numeric-separators-style`, `prefer-https`, `prefer-logical-operator-over-ternary`, `prefer-object-iterable-methods`, `prefer-simple-sort-comparator`, `prefer-unicode-code-point-escapes`. Several are autofixes, so `eslint --fix` on a `.ssjs` file wrote code such as `value ||= "none"` or `1_133_955` that the engine cannot parse — also with unicorn 76.
203
210
  - **New and off:** `prefer-escaped-irregular-whitespace`, `prefer-literal-ascii`, `prefer-regexp-exec`.
@@ -207,12 +214,11 @@ Every rule in v80's recommended set was compared with v76: the rule source and t
207
214
 
208
215
  ---
209
216
 
210
- ## Section 3 — Active rules, including conditional cases (257)
217
+ ## Section 3 — Active rules, including conditional cases (252)
211
218
 
212
219
  These recommended rules are **not** disabled by the override config. Active is a policy classification, not proof that every transformation is safe in SFMC. Modern-syntax-gated paths may be inert under strict ES5 parsing; DOM, Node.js, TypeScript and custom/polyfilled-object paths require their own environment contracts. Each links to its official Unicorn documentation. See the evidence qualifications below before accepting generated changes.
213
220
 
214
221
  <!-- BEGIN ACTIVE-LIST -->
215
- - [better-dom-traversing](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/better-dom-traversing.md)
216
222
  - [catch-error-name](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/catch-error-name.md)
217
223
  - [class-reference-in-static-methods](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/class-reference-in-static-methods.md)
218
224
  - [consistent-assert](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-assert.md)
@@ -280,14 +286,12 @@ These recommended rules are **not** disabled by the override config. Active is a
280
286
  - [no-invalid-argument-count](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-argument-count.md)
281
287
  - [no-invalid-boolean-attribute-value](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-boolean-attribute-value.md)
282
288
  - [no-invalid-character-comparison](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-character-comparison.md)
283
- - [no-invalid-dom-token](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-dom-token.md)
284
289
  - [no-invalid-fetch-options](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-fetch-options.md)
285
290
  - [no-invalid-integrity](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-integrity.md)
286
291
  - [no-invalid-intl-options](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-intl-options.md)
287
292
  - [no-invalid-property-descriptor](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-property-descriptor.md)
288
293
  - [no-invalid-remove-event-listener](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-remove-event-listener.md)
289
294
  - [no-invalid-response-options](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-response-options.md)
290
- - [no-invalid-style-set-property](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-style-set-property.md)
291
295
  - [no-invalid-temporal-arithmetic](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-temporal-arithmetic.md)
292
296
  - [no-invalid-url-protocol-comparison](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-url-protocol-comparison.md)
293
297
  - [no-invalid-well-known-symbol-methods](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-well-known-symbol-methods.md)
@@ -357,7 +361,6 @@ These recommended rules are **not** disabled by the override config. Active is a
357
361
  - [no-useless-boolean-cast](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-boolean-cast.md)
358
362
  - [no-useless-collection-argument](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-collection-argument.md)
359
363
  - [no-useless-compound-assignment](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-compound-assignment.md)
360
- - [no-useless-concat](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-concat.md)
361
364
  - [no-useless-continue](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-continue.md)
362
365
  - [no-useless-delete-check](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-delete-check.md)
363
366
  - [no-useless-else](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-else.md)
@@ -415,7 +418,6 @@ These recommended rules are **not** disabled by the override config. Active is a
415
418
  - [prefer-iterable-in-constructor](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-iterable-in-constructor.md)
416
419
  - [prefer-iterator-to-array](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-iterator-to-array.md)
417
420
  - [prefer-iterator-to-array-at-end](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-iterator-to-array-at-end.md)
418
- - [prefer-keyboard-event-key](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-keyboard-event-key.md)
419
421
  - [prefer-location-assign](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-location-assign.md)
420
422
  - [prefer-math-abs](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-math-abs.md)
421
423
  - [prefer-math-constants](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-math-constants.md)
@@ -475,3 +477,71 @@ These recommended rules are **not** disabled by the override config. Active is a
475
477
 
476
478
  The HTML processor has `supportsAutofix: false`: diagnostics remain, while fixes and editor suggestions are stripped. Standalone upstream tests establish the generated outputs; suppression tests cover both public overrides and ordinary `.js`/`.mjs` non-leakage.
477
479
 
480
+ ---
481
+
482
+ ## Section 4 — Rules outside the recommended set
483
+
484
+ Unicorn's recommended preset does not enable these rules, so they run only if you turn them on yourself. They were audited on 2026-12-01. `sfmc.unicornSsjs(unicorn)` keeps your setting for the 24 non-recommended rules of unicorn 80 marked `active` and turns off the rules marked `off` or `not-applicable`. The older override configs do not cover this section: if you use them, do not enable a rule marked `off` for SSJS files.
485
+
486
+ - **active:** no fix, suggestion or report was found that leads ES5 code to something SSJS cannot run. Many of these rules are inert on ES5 code.
487
+ - **off:** a fix, suggestion or report leads to code SSJS cannot run. This includes rules that only do so with certain options, because `unicornSsjs()` does not look at your options.
488
+ - **not-applicable:** the rule does not support JavaScript in that version. ESLint rejects a config that enables it for a JavaScript file.
489
+ - **absent:** that version does not have the rule.
490
+
491
+ Where the unicorn 80 rule documentation has usable samples, those samples and the fixes and suggestions the rules write for them were run live on an Engagement CloudPage, before Core loading and with Core 1.1.5. Every rule that supports JavaScript was also checked in its source and with ES5 snippets, in both versions. Unicorn 76 had no separate live run. For `comment-content`, the replacement text can come from your own options and is not checked.
492
+
493
+ <!-- BEGIN NON-RECOMMENDED -->
494
+ | Rule | unicorn 80 | unicorn 76 | Why |
495
+ |---|---|---|---|
496
+ | [`comma-spacing`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/comma-spacing.md) | not-applicable | absent | Does not support JavaScript (languages: json, soml). |
497
+ | [`comment-content`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/comment-content.md) | active | active | Only rewrites comment text. The replacement text comes from its defaults or your own options. |
498
+ | [`consistent-arrow-return-style`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-arrow-return-style.md) | active | active | Inert on ES5 code: it only checks arrow functions. |
499
+ | [`consistent-destructuring`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-destructuring.md) | active | active | Inert on ES5 code: it only acts when the object was already destructured. |
500
+ | [`consistent-function-style`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-function-style.md) | off | off | Reports nothing by default. With an option such as `{callbacks: "arrow-function"}` it suggests `(x) => {…}` for an ES5 callback, and the `arrow-function` and `method` styles ask for syntax the engine cannot parse. |
501
+ | [`custom-error-definition`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/custom-error-definition.md) | active | active | Inert on ES5 code: it only checks classes. |
502
+ | [`id-match`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/id-match.md) | active | active | Report-only check of identifier names against your own pattern. |
503
+ | [`indent`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/indent.md) | not-applicable | absent | Does not support JavaScript (languages: css, json). |
504
+ | [`iteration-fallback-style`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/iteration-fallback-style.md) | active | active | On ES5 code it only reports `for…in` loops. Both styles, an `if` guard and an `\|\| {}` fallback, are ES3. Its documentation pairs truthiness guards with `\|\|` and `source != null` guards with `??`; `??` is ES2020, so use `\|\|` or an `if` guard. Its autofix is limited to `for…of`, which ES5 code cannot contain. |
505
+ | [`key-name-casing`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/key-name-casing.md) | not-applicable | absent | Does not support JavaScript (languages: json, soml, yml, toml). |
506
+ | [`no-array-front-mutation`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-front-mutation.md) | active | active | Report-only. `shift()` and `unshift()` work in SSJS, and an index cursor, one of the documented alternatives, is ES3. The documentation also shows `for…of` and an imported queue, which SSJS cannot run; the rule never writes them. |
507
+ | [`no-asterisk-prefix-in-documentation-comments`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md) | active | active | Only changes whitespace and asterisks inside documentation comments. Recommended in 80 (see Section 3). |
508
+ | [`no-async-promise-finally`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-async-promise-finally.md) | active | active | Inert on ES5 code: it only reports async callbacks. The `promise.finally(…)` line in its documentation is a syntax error in SSJS, but the rule never writes it. Recommended in 76. |
509
+ | [`no-barrel-files`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-barrel-files.md) | active | active | Inert on ES5 code: it only checks ES module exports. |
510
+ | [`no-deprecated-css-features`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-deprecated-css-features.md) | absent | not-applicable | Does not support JavaScript (languages: css). |
511
+ | [`no-duplicate-css-selectors`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-css-selectors.md) | absent | not-applicable | Does not support JavaScript (languages: css). |
512
+ | [`no-duplicate-font-family-names`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-font-family-names.md) | absent | not-applicable | Does not support JavaScript (languages: css). |
513
+ | [`no-empty-link-text`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-empty-link-text.md) | not-applicable | absent | Does not support JavaScript (languages: markdown). |
514
+ | [`no-invalid-file-input-accept`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-file-input-accept.md) | active | active | Inert on ES5 code: in JavaScript it only checks JSX. |
515
+ | [`no-invalid-media-features`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-media-features.md) | absent | not-applicable | Does not support JavaScript (languages: css). |
516
+ | [`no-javascript-url`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-javascript-url.md) | not-applicable | absent | Does not support JavaScript (languages: markdown). |
517
+ | [`no-keyword-prefix`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-keyword-prefix.md) | active | active | Report-only naming check; renaming an identifier is ES3. |
518
+ | [`no-loss-of-precision`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-loss-of-precision.md) | not-applicable | absent | Does not support JavaScript (languages: css, json, toml, soml). |
519
+ | [`no-manually-wrapped-comments`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-manually-wrapped-comments.md) | active | active | Only joins lines of comments. |
520
+ | [`no-missing-local-resource`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-missing-local-resource.md) | active | active | Inert on ES5 code: in 80, its only JavaScript check is for `new URL(…, import.meta.url)`; 76 has no JavaScript check. |
521
+ | [`no-nesting-with-mixed-specificity`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nesting-with-mixed-specificity.md) | absent | not-applicable | Does not support JavaScript (languages: css). |
522
+ | [`no-redundant-nested-style-rules`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-nested-style-rules.md) | absent | not-applicable | Does not support JavaScript (languages: css). |
523
+ | [`no-repeated-call-wrappers`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-repeated-call-wrappers.md) | active | absent | Report-only. Moving the wrapper into the function adds no new syntax or built-in. |
524
+ | [`no-unknown-css-annotations`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-css-annotations.md) | absent | not-applicable | Does not support JavaScript (languages: css). |
525
+ | [`no-unknown-pseudo-selectors`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-pseudo-selectors.md) | absent | not-applicable | Does not support JavaScript (languages: css). |
526
+ | [`no-unnecessary-default-arguments`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-default-arguments.md) | active | absent | Inert on ES5 code: it needs parameter or destructuring defaults. |
527
+ | [`no-unreadable-new-expression`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unreadable-new-expression.md) | active | active | Report-only. Splitting the expression into separate statements is ES3. |
528
+ | [`no-unsafe-dom-html`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-dom-html.md) | active | active | Report-only check of browser DOM calls such as `innerHTML` and never writes code. As with the other DOM rules, it has nothing useful to check in SSJS; its advice, such as `setHTML()`, is for browsers. |
529
+ | [`no-unscoped-css-nesting-selector`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unscoped-css-nesting-selector.md) | absent | not-applicable | Does not support JavaScript (languages: css). |
530
+ | [`no-unused-properties`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unused-properties.md) | active | active | Report-only. Removing an unused property adds no new syntax or built-in. |
531
+ | [`prefer-dispose`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dispose.md) | active | active | Inert on ES5 code: it only acts on resources declared with `const` or `let`. |
532
+ | [`prefer-error-is-error`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-error-is-error.md) | off | off | Autofix turns `x instanceof Error` and the `Object.prototype.toString` check into `Error.isError(x)`, which does not exist in SSJS. |
533
+ | [`prefer-explicit-viewport-units`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-explicit-viewport-units.md) | absent | not-applicable | Does not support JavaScript (languages: css). |
534
+ | [`prefer-import-meta-properties`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-import-meta-properties.md) | active | active | Inert on ES5 code: it only checks code that uses `import.meta`. |
535
+ | [`prefer-iterator-concat`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterator-concat.md) | active | active | Inert on ES5 code: it only checks arrays built from spread elements. |
536
+ | [`prefer-json-import`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-json-import.md) | active | active | Inert on ES5 code: it only runs on ES modules, and SSJS is linted as a script. |
537
+ | [`prefer-media-feature-range-syntax`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-media-feature-range-syntax.md) | absent | not-applicable | Does not support JavaScript (languages: css). |
538
+ | [`prefer-regexp-escape`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-regexp-escape.md) | off | off | Replaces a hand-written regular expression escape with `RegExp.escape(string)`, which does not exist in SSJS. |
539
+ | [`prefer-short-arrow-method`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-short-arrow-method.md) | active | active | Inert on ES5 code: it only checks shorthand methods. |
540
+ | [`prefer-temporal`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-temporal.md) | off | off | Suggests `Temporal.Now.*` for `new Date()`, autofixes `Date.now()` when `checkDateNow` is set, and asks for Temporal in place of other `Date` calls. `Temporal` does not exist in SSJS. |
541
+ | [`prefer-uint8array-base64`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-uint8array-base64.md) | off | off | Fixes and suggestions use `Uint8Array.fromBase64()` and `toBase64()`, which do not exist in SSJS. |
542
+ | [`prefer-uint8array-hex`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-uint8array-hex.md) | off | off | Fixes and suggestions use `Uint8Array.fromHex()` and `toHex()`, which do not exist in SSJS. The probe of `buffer.toHex()` ran only because its generated fixture supplies `toHex`. |
543
+ | [`require-frontmatter-fields`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-frontmatter-fields.md) | not-applicable | active | Does not support JavaScript in 80. In 76 it does, but it only checks YAML frontmatter. |
544
+ | [`require-post-message-target-origin`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-post-message-target-origin.md) | off | off | For any one-argument `x.postMessage(data)` call it suggests adding `self.location.origin`, `x.location.origin` or `"*"`. SSJS has no browser `self` or `window`, and the method is not the browser one, so the extra argument changes its call. The probe samples ran only because their fixtures supply those objects. |
545
+ | [`string-content`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/string-content.md) | off | off | Reports nothing without options. With `patterns`, its fix or suggestion rewrites the whole string literal and writes control characters (other than short escapes such as `\n`), DEL, U+2028/U+2029 and lone surrogates as ES2015 `\u{…}` escapes, even when the replacement text is plain. The engine cannot parse them. |
546
+ | [`try-complexity`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/try-complexity.md) | active | active | Report-only limit on decisions inside a `try` block. Moving code out of the block adds no new syntax or built-in. |
547
+ <!-- END NON-RECOMMENDED -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-sfmc",
3
- "version": "5.5.0",
3
+ "version": "5.6.0",
4
4
  "description": "ESLint plugin for Salesforce Marketing Cloud Engagement+Next - AMPscript, Server-Side JavaScript (SSJS) and Handlebars",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -42,7 +42,7 @@
42
42
  "handlebars-data": "^0.8.2",
43
43
  "mso-conditional-parser": "^2.0.1",
44
44
  "sfmc-handlebars-parser": "^0.2.1",
45
- "ssjs-data": "^2.2.0"
45
+ "ssjs-data": "^2.2.1"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "eslint": ">=10.0.0",
package/src/index.js CHANGED
@@ -394,7 +394,7 @@ function standaloneHandlebarsConfigs(configName) {
394
394
  // ── Optional eslint-plugin-unicorn override for SSJS ──────────────────────────
395
395
 
396
396
  /**
397
- * The 83 `eslint-plugin-unicorn` recommended rules (audited against unicorn
397
+ * The 88 `eslint-plugin-unicorn` recommended rules (audited against unicorn
398
398
  * v76.0.0 and v80.0.0; the list is the union of both audits) that are
399
399
  * incompatible with the SFMC SSJS (JINT / ES3-ES5) engine — they either
400
400
  * fix/suggest code using a missing built-in, change recorded runtime semantics,
@@ -522,26 +522,35 @@ const unicornSsjsOffRules = {
522
522
  'unicorn/no-array-callback-reference': 'off',
523
523
  'unicorn/no-boolean-sort-comparator': 'off',
524
524
  'unicorn/prefer-simple-sort-comparator': 'off',
525
+ // Later finding (2026-12-02): these write control characters, DEL and U+2028/U+2029
526
+ // in string literals as ES2015 \u{…} escapes. prefer-keyboard-event-key only in 76.
527
+ 'unicorn/no-useless-concat': 'off',
528
+ 'unicorn/better-dom-traversing': 'off',
529
+ 'unicorn/no-invalid-dom-token': 'off',
530
+ 'unicorn/no-invalid-style-set-property': 'off',
531
+ 'unicorn/prefer-keyboard-event-key': 'off',
525
532
  };
526
533
 
527
534
  /**
528
- * Every `eslint-plugin-unicorn` rule the newest audit marked safe for SSJS
529
- * (verdict `active` there and not in `unicornSsjsOffRules`). A rule only an
530
- * older audit covered stays off: the newest version was not checked for it.
535
+ * Every `eslint-plugin-unicorn` rule, recommended or not, that the newest audit
536
+ * marked safe for SSJS (verdict `active` there and not `off` in any supported
537
+ * audit). A rule that only an older audit marked safe stays off.
531
538
  * `unicornSsjs()` leaves these to the user's own
532
539
  * unicorn config and turns every other unicorn rule off for SSJS, so renamed,
533
540
  * new or unaudited rules stay off until an audit adds them here.
534
541
  * tests/unicorn-function.test.js keeps this list equal to audit/unicorn/.
535
542
  */
536
543
  const unicornSsjsActiveRules = new Set([
537
- 'better-dom-traversing',
538
544
  'catch-error-name',
539
545
  'class-reference-in-static-methods',
546
+ 'comment-content',
547
+ 'consistent-arrow-return-style',
540
548
  'consistent-assert',
541
549
  'consistent-boolean-name',
542
550
  'consistent-class-member-order',
543
551
  'consistent-compound-words',
544
552
  'consistent-conditional-object-spread',
553
+ 'consistent-destructuring',
545
554
  'consistent-empty-array-spread',
546
555
  'consistent-existence-index-check',
547
556
  'consistent-export-decorator-position',
@@ -550,6 +559,7 @@ const unicornSsjsActiveRules = new Set([
550
559
  'consistent-optional-chaining',
551
560
  'consistent-template-literal-escape',
552
561
  'consistent-tuple-labels',
562
+ 'custom-error-definition',
553
563
  'default-export-style',
554
564
  'empty-brace-spaces',
555
565
  'error-message',
@@ -558,8 +568,10 @@ const unicornSsjsActiveRules = new Set([
558
568
  'explicit-length-check',
559
569
  'explicit-timer-delay',
560
570
  'filename-case',
571
+ 'id-match',
561
572
  'import-style',
562
573
  'isolated-functions',
574
+ 'iteration-fallback-style',
563
575
  'max-nested-calls',
564
576
  'name-replacements',
565
577
  'new-for-builtins',
@@ -569,11 +581,14 @@ const unicornSsjsActiveRules = new Set([
569
581
  'no-array-concat-in-loop',
570
582
  'no-array-fill-with-reference-type',
571
583
  'no-array-from-fill',
584
+ 'no-array-front-mutation',
572
585
  'no-array-reduce',
573
586
  'no-asterisk-prefix-in-documentation-comments',
574
587
  'no-async-iterator-callback',
588
+ 'no-async-promise-finally',
575
589
  'no-await-expression-member',
576
590
  'no-await-in-promise-methods',
591
+ 'no-barrel-files',
577
592
  'no-blob-to-file',
578
593
  'no-break-in-nested-loop',
579
594
  'no-canvas-to-image',
@@ -602,25 +617,27 @@ const unicornSsjsActiveRules = new Set([
602
617
  'no-invalid-argument-count',
603
618
  'no-invalid-boolean-attribute-value',
604
619
  'no-invalid-character-comparison',
605
- 'no-invalid-dom-token',
606
620
  'no-invalid-fetch-options',
621
+ 'no-invalid-file-input-accept',
607
622
  'no-invalid-integrity',
608
623
  'no-invalid-intl-options',
609
624
  'no-invalid-property-descriptor',
610
625
  'no-invalid-remove-event-listener',
611
626
  'no-invalid-response-options',
612
- 'no-invalid-style-set-property',
613
627
  'no-invalid-temporal-arithmetic',
614
628
  'no-invalid-url-protocol-comparison',
615
629
  'no-invalid-well-known-symbol-methods',
630
+ 'no-keyword-prefix',
616
631
  'no-late-current-target-access',
617
632
  'no-late-event-control',
618
633
  'no-leading-empty-lines',
619
634
  'no-lonely-if',
620
635
  'no-loop-iterable-mutation',
621
636
  'no-magic-array-flat-depth',
637
+ 'no-manually-wrapped-comments',
622
638
  'no-mismatched-map-key',
623
639
  'no-misrefactored-assignment',
640
+ 'no-missing-local-resource',
624
641
  'no-multiple-promise-resolver-calls',
625
642
  'no-named-default',
626
643
  'no-negated-array-predicate',
@@ -637,6 +654,7 @@ const unicornSsjsActiveRules = new Set([
637
654
  'no-optional-chaining-on-undeclared-variable',
638
655
  'no-prevent-default-in-passive-listener',
639
656
  'no-process-exit',
657
+ 'no-repeated-call-wrappers',
640
658
  'no-return-array-push',
641
659
  'no-selector-as-dom-name',
642
660
  'no-shorthand-property-overrides',
@@ -656,6 +674,7 @@ const unicornSsjsActiveRules = new Set([
656
674
  'no-unnecessary-array-flat-map',
657
675
  'no-unnecessary-await',
658
676
  'no-unnecessary-boolean-comparison',
677
+ 'no-unnecessary-default-arguments',
659
678
  'no-unnecessary-fetch-options',
660
679
  'no-unnecessary-global-this',
661
680
  'no-unnecessary-nested-ternary',
@@ -666,8 +685,10 @@ const unicornSsjsActiveRules = new Set([
666
685
  'no-unreadable-array-destructuring',
667
686
  'no-unreadable-for-of-expression',
668
687
  'no-unreadable-iife',
688
+ 'no-unreadable-new-expression',
669
689
  'no-unreadable-object-destructuring',
670
690
  'no-unsafe-buffer-conversion',
691
+ 'no-unsafe-dom-html',
671
692
  'no-unsafe-json-serialization',
672
693
  'no-unsafe-promise-all-settled-values',
673
694
  'no-unsafe-property-key',
@@ -675,11 +696,11 @@ const unicornSsjsActiveRules = new Set([
675
696
  'no-unsafe-string-replacement',
676
697
  'no-unused-builtin-method-return',
677
698
  'no-unused-iterator-helper',
699
+ 'no-unused-properties',
678
700
  'no-url-in-search-params',
679
701
  'no-useless-boolean-cast',
680
702
  'no-useless-collection-argument',
681
703
  'no-useless-compound-assignment',
682
- 'no-useless-concat',
683
704
  'no-useless-continue',
684
705
  'no-useless-delete-check',
685
706
  'no-useless-else',
@@ -719,6 +740,7 @@ const unicornSsjsActiveRules = new Set([
719
740
  'prefer-combined-guards',
720
741
  'prefer-continue',
721
742
  'prefer-direct-iteration',
743
+ 'prefer-dispose',
722
744
  'prefer-dom-node-append',
723
745
  'prefer-dom-node-html-methods',
724
746
  'prefer-dom-node-remove',
@@ -734,10 +756,12 @@ const unicornSsjsActiveRules = new Set([
734
756
  'prefer-has-check',
735
757
  'prefer-hoisting-branch-code',
736
758
  'prefer-identifier-import-export-specifiers',
759
+ 'prefer-import-meta-properties',
737
760
  'prefer-iterable-in-constructor',
761
+ 'prefer-iterator-concat',
738
762
  'prefer-iterator-to-array',
739
763
  'prefer-iterator-to-array-at-end',
740
- 'prefer-keyboard-event-key',
764
+ 'prefer-json-import',
741
765
  'prefer-location-assign',
742
766
  'prefer-math-abs',
743
767
  'prefer-math-constants',
@@ -757,6 +781,7 @@ const unicornSsjsActiveRules = new Set([
757
781
  'prefer-queue-microtask',
758
782
  'prefer-response-static-json',
759
783
  'prefer-scoped-selector',
784
+ 'prefer-short-arrow-method',
760
785
  'prefer-short-escape-sequences',
761
786
  'prefer-simple-condition-first',
762
787
  'prefer-simplified-conditions',
@@ -791,6 +816,7 @@ const unicornSsjsActiveRules = new Set([
791
816
  'template-indent',
792
817
  'text-encoding-identifier-case',
793
818
  'throw-new-error',
819
+ 'try-complexity',
794
820
  ]);
795
821
 
796
822
  // ── MSO / Outlook email rule configs (auto-included, no separate plugin load) ──
@@ -1187,7 +1213,7 @@ plugin.configs = {
1187
1213
  // ── Required overrides when eslint-plugin-unicorn covers SSJS ────────────
1188
1214
 
1189
1215
  /**
1190
- * REQUIRED when unicorn covers standalone `.ssjs` files: turns off the 83
1216
+ * REQUIRED when unicorn covers standalone `.ssjs` files: turns off the 88
1191
1217
  * unicorn recommended rules incompatible with SFMC SSJS. Plain rules object with NO
1192
1218
  * `plugins` key — eslint-plugin-sfmc does not load unicorn. Insert this object
1193
1219
  * AFTER your own unicorn config (which registers the `unicorn` plugin);
@@ -1201,7 +1227,7 @@ plugin.configs = {
1201
1227
  },
1202
1228
 
1203
1229
  /**
1204
- * REQUIRED when unicorn covers SSJS embedded in HTML: same 83-rule override
1230
+ * REQUIRED when unicorn covers SSJS embedded in HTML: same 88-rule override
1205
1231
  * for virtual `**\/*.html/*.js` files. Insert AFTER your unicorn config.
1206
1232
  * Omit this config if unicorn is not enabled for embedded SSJS.
1207
1233
  */
@@ -1219,8 +1245,9 @@ plugin.configs = {
1219
1245
  *
1220
1246
  * ...sfmc.unicornSsjs(eslintPluginUnicorn)
1221
1247
  *
1222
- * Every rule of the given unicorn version that no audit marked safe for SSJS
1223
- * is turned off; the audited rules keep whatever your unicorn config sets.
1248
+ * Every rule of the given unicorn version is turned off unless the newest
1249
+ * audit marked it safe for SSJS and no supported audit marked it off; the
1250
+ * rules audited as safe keep whatever your unicorn config sets.
1224
1251
  * Only `'off'` is written, so a rule missing from an older or newer unicorn
1225
1252
  * never causes a "Could not find rule" error.
1226
1253
  *