You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* refactor: updated uncloneable-options error message to give more clarity
* updated tests to match error message change
* fix: language clean-up for clarity
Copy file name to clipboardExpand all lines: lib/eslint/eslint.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -547,7 +547,7 @@ function validateOptionCloneability(options) {
547
547
})
548
548
.sort();
549
549
consterror=newTypeError(
550
-
`The ${uncloneableOptionKeys.length===1 ? "option" : "options"}${newIntl.ListFormat("en-US").format(uncloneableOptionKeys.map(key=>`"${key}"`))} cannot be cloned. When concurrency is enabled, all options must be cloneable. Remove uncloneable options or use an options module.`,
550
+
`The ${uncloneableOptionKeys.length===1 ? "option" : "options"}${newIntl.ListFormat("en-US").format(uncloneableOptionKeys.map(key=>`"${key}"`))} cannot be cloned. When concurrency is enabled, all options must be cloneable values (JSON values). Remove uncloneable options or use an options module.`,
Copy file name to clipboardExpand all lines: tests/lib/eslint/eslint.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -426,7 +426,7 @@ describe("ESLint", () => {
426
426
constructor: TypeError,
427
427
code: "ESLINT_UNCLONEABLE_OPTIONS",
428
428
message:
429
-
'The options "baseConfig", "fix", and "plugins" cannot be cloned. When concurrency is enabled, all options must be cloneable. Remove uncloneable options or use an options module.',
429
+
'The options "baseConfig", "fix", and "plugins" cannot be cloned. When concurrency is enabled, all options must be cloneable values (JSON values). Remove uncloneable options or use an options module.',
430
430
},
431
431
);
432
432
});
@@ -445,7 +445,7 @@ describe("ESLint", () => {
445
445
constructor: TypeError,
446
446
code: "ESLINT_UNCLONEABLE_OPTIONS",
447
447
message:
448
-
'The option "ruleFilter" cannot be cloned. When concurrency is enabled, all options must be cloneable. Remove uncloneable options or use an options module.',
448
+
'The option "ruleFilter" cannot be cloned. When concurrency is enabled, all options must be cloneable values (JSON values). Remove uncloneable options or use an options module.',
0 commit comments