Files
med-notes/.pnpm-store/v10/files/8c/2b472fac377b695eca34b6cac6ebd4d5d5bcff00ab58ab7a6ebe3d2e9f4569311868a47530c1fa33b9aa5b407823c00dd118dab970605a8784afa37eac3db6
2025-05-09 05:30:08 +02:00

18 lines
648 B
Plaintext

"use strict";
const { stringifyValueForError } = require("./shared");
module.exports = function ({ ruleId, value }) {
return `
Configuration for rule "${ruleId}" is invalid. Each rule must have a severity ("off", 0, "warn", 1, "error", or 2) and may be followed by additional options for the rule.
You passed '${stringifyValueForError(value, 4)}', which doesn't contain a valid severity.
If you're attempting to configure rule options, perhaps you meant:
"${ruleId}": ["error", ${stringifyValueForError(value, 8)}]
See https://eslint.org/docs/latest/use/configure/rules#using-configuration-files for configuring rules.
`.trimStart();
};