markdownlint-cli 0.27.0 → 0.27.1

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.
package/README.md CHANGED
@@ -116,7 +116,7 @@ To run `markdownlint-cli` as part of a [pre-commit](https://pre-commit.com/) wor
116
116
 
117
117
  ```yaml
118
118
  - repo: https://github.com/igorshubovych/markdownlint-cli
119
- rev: v0.27.0
119
+ rev: v0.27.1
120
120
  hooks:
121
121
  - id: markdownlint
122
122
  ```
package/markdownlint.js CHANGED
@@ -34,8 +34,7 @@ const configFileParsers = [jsoncParse, jsYamlSafeLoad];
34
34
  const fsOptions = {encoding: 'utf8'};
35
35
  const processCwd = process.cwd();
36
36
 
37
- function readConfiguration(args) {
38
- const userConfigFile = args.config;
37
+ function readConfiguration(userConfigFile) {
39
38
  const jsConfigFile = /\.js$/i.test(userConfigFile);
40
39
  const rcArgv = minimist(process.argv.slice(2));
41
40
  if (jsConfigFile) {
@@ -268,7 +267,7 @@ const diff = differenceWith(files, ignores, function (a, b) {
268
267
 
269
268
  function lintAndPrint(stdin, files) {
270
269
  files = files || [];
271
- const config = readConfiguration(program);
270
+ const config = readConfiguration(options.config);
272
271
  const lintOptions = {
273
272
  config,
274
273
  customRules,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markdownlint-cli",
3
- "version": "0.27.0",
3
+ "version": "0.27.1",
4
4
  "description": "MarkdownLint Command Line Interface",
5
5
  "main": "markdownlint.js",
6
6
  "bin": {