Skip to content

Commit 0516e7f

Browse files
committed
docs: adjust debug logs
1 parent e22f6ed commit 0516e7f

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎lib/generateTasks.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const debugLog = createDebug('lint-staged:generateTasks')
1616
* @param {boolean} [options.relative] - Whether filepaths to should be relative to cwd
1717
*/
1818
export const generateTasks = ({ config, cwd = process.cwd(), files, relative = false }) => {
19-
debugLog('Generating linter tasks')
19+
debugLog('Generating tasks')
2020

2121
/** @type {StagedFile[]} */
2222
const relativeFiles = files.map((file) => ({

‎lib/getSpawnedTask.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ export const createTaskError = (command, result, ctx, signal = 'FAILED') => {
5757
}
5858

5959
/**
60-
* Returns the task function for the linter.
60+
* Returns the spawnable task.
6161
*
6262
* @param {Object} options
6363
* @param {AbortController} options.abortController
64-
* @param {string} options.command — Linter task
64+
* @param {string} options.command — the command to spawn
6565
* @param {string} [options.continueOnError]
6666
* @param {string} [options.cwd]
6767
* @param {String} options.topLevelDir - Current git repo top-level path
68-
* @param {Boolean} options.isFn - Whether the linter task is a function
69-
* @param {string[]} options.files — Filepaths to run the linter task against
68+
* @param {Boolean} options.isFn - Whether the task is a function instead of a string
69+
* @param {string[]} options.files — Filepaths to run the task against
7070
* @param {Boolean} [options.verbose] — Always show task verbose
7171
* @returns {() => Promise<Array<string>>}
7272
*/

‎lib/runAll.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const runAll = async (
113113
) => {
114114
const thisLogger = configureLogger(logger, quiet)
115115

116-
debugLog('Running all linter scripts...')
116+
debugLog('Running all tasks...')
117117

118118
// Resolve relative CWD option
119119
const hasExplicitCwd = !!cwd

0 commit comments

Comments
 (0)
Sponsor
SponsoredKunjungi sekarang
Promo