lint-staged 12.4.1 → 12.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,7 +34,7 @@ cmdline
34
34
  .option('-c, --config [path]', 'path to configuration file, or - to read from stdin')
35
35
  .option('--cwd [path]', 'run all tasks in specific directory, instead of the current')
36
36
  .option('-d, --debug', 'print additional debug information', false)
37
- .option('--max-arg-length', 'maximum length of the command-line argument string')
37
+ .option('--max-arg-length [number]', 'maximum length of the command-line argument string', 0)
38
38
  .option('--no-stash', 'disable the backup stash, and do not revert in case of errors', false)
39
39
  .option('-q, --quiet', 'disable lint-staged’s own console output', false)
40
40
  .option('-r, --relative', 'pass relative filepaths to tasks', false)
@@ -61,7 +61,7 @@ const options = {
61
61
  configPath: cmdlineOptions.config,
62
62
  cwd: cmdlineOptions.cwd,
63
63
  debug: !!cmdlineOptions.debug,
64
- maxArgLength: JSON.parse(cmdlineOptions.maxArgLength || null),
64
+ maxArgLength: cmdlineOptions.maxArgLength || undefined,
65
65
  quiet: !!cmdlineOptions.quiet,
66
66
  relative: !!cmdlineOptions.relative,
67
67
  shell: cmdlineOptions.shell /* Either a boolean or a string pointing to the shell */,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lint-staged",
3
- "version": "12.4.1",
3
+ "version": "12.4.2",
4
4
  "description": "Lint files staged by git",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/okonet/lint-staged",