When calling markdown-inject --all with lint-staged, lint-staged will tack staged files onto the end of the call.
Example call from lint-staged:
markdown-inject --all --no-follow-symbolic-links "/Users/<me>/development/projects/<my-project>/package.json"
This check causes a code 1 exit:
|
if (options.all && globPattern) { |
|
console.error( |
|
`Options -a / --all and a globPattern ('${globPattern}') can not be provided together. Please select one or the other.` |
|
) |
|
return process.exit(1) |
|
} |
Example:
Options -a / --all and a globPattern ('/Users/<me>/development/projects/<my-project>/package.json') can not be provided together. Please select one or the other.
When calling
markdown-inject --allwithlint-staged,lint-stagedwill tack staged files onto the end of the call.Example call from
lint-staged:markdown-inject --all --no-follow-symbolic-links "/Users/<me>/development/projects/<my-project>/package.json"This check causes a code 1 exit:
markdown-inject/src/index.ts
Lines 41 to 46 in 099784f
Example:
Options -a / --all and a globPattern ('/Users/<me>/development/projects/<my-project>/package.json') can not be provided together. Please select one or the other.