/
canecpro
/
TProgramming_2025
Обзор
Документация
Войти
/
canecpro
/
TProgramming_2025
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
node_modules/eslint/messages/config-serialize-function.js
30 строк
942 B
Canecpro17
Initial commit: Combat Arena Simulator project
18 янв 2026, 15:53
18 янв 2026, 15:53
4a0290e
Код
Авторство
О чём код?
"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(); };