PHP 7.4.33
Preview: config-serialize-function.js Size: 942 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/eslint/messages/config-serialize-function.js
"use strict";

module.exports = function ({ key, objectKey }) {
	// special case for parsers
	const isParser =
		objectKey === "parser" && (key === "parse" || key === "parseForESLint");
	const parserMessage = `
    This typically happens when you're using a custom parser that does not
provide a "meta" property, which is how ESLint determines the serialized
representation. Please open an issue with the maintainer of the custom parser
and share this link:

https://eslint.org/docs/latest/extend/custom-parsers#meta-data-in-custom-parsers
`.trim();

	return `
The requested operation requires ESLint to serialize configuration data,
but the configuration key "${objectKey}.${key}" contains a function value,
which cannot be serialized.

${
	isParser
		? parserMessage
		: "Please double-check your configuration for errors."
}

If you still have problems, please stop by https://eslint.org/chat/help to chat
with the team.
`.trimStart();
};

Directory Contents

Dirs: 0 × Files: 19
Name Size Perms Modified Actions
660 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
1.00 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
526 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
445 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
942 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
5.11 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
932 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
418 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
157 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
268 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
648 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
408 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
527 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
518 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
653 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
659 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
252 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
546 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
386 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).