You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 427ac0a
Browse filesBrowse the repository at this point in the historyBrowse files
* fix: use format strings in debug calls
* tweaks
* remove debug output for `ConfigLoader` class name
* no suggestion if the template literal contains a format specifier
* clarify comments
* move the check for multiple arguments to the fixer function
* remove sperfluous parameter
Copy file name to clipboardExpand all lines: docs/src/use/configure/debug.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ ESLint creates a configuration for each file that is linted based on your config
25
25
This outputs all of ESLint's debugging information onto the console. You should copy this output to a file and then search for `eslint.config.js` to see which file is loaded. Here's some example output:
26
26
27
27
```text
28
-
eslint:eslint Using file patterns: bin/eslint.js +0ms
28
+
eslint:eslint Using file patterns: [ 'bin/eslint.js' ] +0ms
29
29
eslint:eslint Searching for eslint.config.js +0ms
30
30
eslint:eslint Loading config from C:\Users\nzakas\projects\eslint\eslint\eslint.config.js +5ms
31
31
eslint:eslint Config file URL is file:///C:/Users/nzakas/projects/eslint/eslint/eslint.config.js +0ms
Copy file name to clipboardExpand all lines: lib/cli.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -284,7 +284,7 @@ const cli = {
284
284
return0;
285
285
}
286
286
287
-
debug(`Running on ${useStdin ? "text" : "files"}`);
287
+
debug("Running on %s",useStdin ? "text" : "files");
288
288
289
289
if(options.fix&&options.fixDryRun){
290
290
log.error(
@@ -463,7 +463,7 @@ const cli = {
463
463
* Neither option was provided, `options.color` is omitted, so `undefined`.
464
464
*/
465
465
if(options.color!==void0){
466
-
debug(`Color setting for output: ${options.color}`);
466
+
debug("Color setting for output: %s",options.color);
467
467
resultsMeta.color=options.color;
468
468
}
469
469
@@ -502,7 +502,7 @@ const cli = {
502
502
log.error(
503
503
"There are suppressions left that do not occur anymore. To resolve this, re-run the command with `--prune-suppressions` to remove unused suppressions. To ignore unused suppressions, use `--pass-on-unpruned-suppressions`.",
0 commit comments