]>
Commit | Line | Data |
---|---|---|
f2a92ac6 DC |
1 | "use strict"; |
2 | ||
3 | const { stringifyValueForError } = require("./shared"); | |
4 | ||
5 | module.exports = function({ ruleId, value }) { | |
6 | return ` | |
7 | Configuration for rule "${ruleId}" is invalid. Expected severity of "off", 0, "warn", 1, "error", or 2. | |
8 | ||
9 | You passed '${stringifyValueForError(value, 4)}'. | |
10 | ||
11 | See https://eslint.org/docs/latest/use/configure/rules#using-configuration-files for configuring rules. | |
12 | `.trimStart(); | |
13 | }; |