diff --git a/lib/execGit.js b/lib/execGit.js index 949a042cf..432a290cb 100644 --- a/lib/execGit.js +++ b/lib/execGit.js @@ -1,7 +1,7 @@ import debug from 'debug' import execa from 'execa' -const debugLog = debug('lint-staged:git') +const debugLog = debug('lint-staged:execGit') /** * Explicitly never recurse commands into submodules, overriding local/global configuration. diff --git a/lib/generateTasks.js b/lib/generateTasks.js index a0ea74ee9..5e2f0858c 100644 --- a/lib/generateTasks.js +++ b/lib/generateTasks.js @@ -3,7 +3,7 @@ import micromatch from 'micromatch' import path from 'path' import normalize from 'normalize-path' -const debugLog = debug('lint-staged:gen-tasks') +const debugLog = debug('lint-staged:generateTasks') /** * Generates all task commands, and filelist diff --git a/lib/gitWorkflow.js b/lib/gitWorkflow.js index e0b584666..995e7888f 100644 --- a/lib/gitWorkflow.js +++ b/lib/gitWorkflow.js @@ -13,7 +13,7 @@ import { RestoreUnstagedChangesError, } from './symbols.js' -const debugLog = debug('lint-staged:git') +const debugLog = debug('lint-staged:GitWorkflow') const MERGE_HEAD = 'MERGE_HEAD' const MERGE_MODE = 'MERGE_MODE' diff --git a/lib/makeCmdTasks.js b/lib/makeCmdTasks.js index 678d0ecc6..8bac8f7a6 100644 --- a/lib/makeCmdTasks.js +++ b/lib/makeCmdTasks.js @@ -4,7 +4,7 @@ import debug from 'debug' import { configurationError } from './messages.js' import { resolveTaskFn } from './resolveTaskFn.js' -const debugLog = debug('lint-staged:make-cmd-tasks') +const debugLog = debug('lint-staged:makeCmdTasks') const STDOUT_COLUMNS_DEFAULT = 80 diff --git a/lib/resolveTaskFn.js b/lib/resolveTaskFn.js index d11f5f1e2..a0af0262f 100644 --- a/lib/resolveTaskFn.js +++ b/lib/resolveTaskFn.js @@ -7,7 +7,7 @@ import { error, info } from './figures.js' import { getInitialState } from './state.js' import { TaskError } from './symbols.js' -const debugLog = debug('lint-staged:task') +const debugLog = debug('lint-staged:resolveTaskFn') const getTag = ({ code, killed, signal }) => signal || (killed && 'KILLED') || code || 'FAILED' diff --git a/lib/runAll.js b/lib/runAll.js index 2453b5003..08b9d6f55 100644 --- a/lib/runAll.js +++ b/lib/runAll.js @@ -32,7 +32,7 @@ import { } from './state.js' import { GitRepoError, GetStagedFilesError, GitError } from './symbols.js' -const debugLog = debug('lint-staged:run') +const debugLog = debug('lint-staged:runAll') const createError = (ctx) => Object.assign(new Error('lint-staged failed'), { ctx }) diff --git a/lib/validateConfig.js b/lib/validateConfig.js index 9056d8553..19c0a9704 100644 --- a/lib/validateConfig.js +++ b/lib/validateConfig.js @@ -3,7 +3,7 @@ import debug from 'debug' import { configurationError } from './messages.js' import { validateBraces } from './validateBraces.js' -const debugLog = debug('lint-staged:cfg') +const debugLog = debug('lint-staged:validateConfig') const isObject = (test) => test && typeof test === 'object' && !Array.isArray(test) diff --git a/lib/validateOptions.js b/lib/validateOptions.js index 11ad32cff..e0d5c46b5 100644 --- a/lib/validateOptions.js +++ b/lib/validateOptions.js @@ -5,7 +5,7 @@ import { constants } from 'fs' import { invalidOption } from './messages.js' import { InvalidOptionsError } from './symbols.js' -const debugLog = debug('lint-staged:options') +const debugLog = debug('lint-staged:validateOptions') /** * Validate lint-staged options, either from the Node.js API or the command line flags.