main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
650 bytes
|
Line | |
---|
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. Each rule must have a severity ("off", 0, "warn", 1, "error", or 2) and may be followed by additional options for the rule.
|
---|
8 |
|
---|
9 | You passed '${stringifyValueForError(value, 4)}', which doesn't contain a valid severity.
|
---|
10 |
|
---|
11 | If you're attempting to configure rule options, perhaps you meant:
|
---|
12 |
|
---|
13 | "${ruleId}": ["error", ${stringifyValueForError(value, 8)}]
|
---|
14 |
|
---|
15 | See https://eslint.org/docs/latest/use/configure/rules#using-configuration-files for configuring rules.
|
---|
16 | `.trimStart();
|
---|
17 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.