markdownlint-cli
Advanced tools
Comparing version 0.9.0 to 0.10.0
@@ -9,2 +9,3 @@ #!/usr/bin/env node | ||
var getStdin = require('get-stdin'); | ||
var jsYaml = require('js-yaml'); | ||
var differenceWith = require('lodash.differencewith'); | ||
@@ -35,3 +36,3 @@ var flatten = require('lodash.flatten'); | ||
try { | ||
var userConfig = markdownlint.readConfigSync(userConfigFile); | ||
var userConfig = markdownlint.readConfigSync(userConfigFile, [JSON.parse, jsYaml.safeLoad]); | ||
config = extend(config, userConfig); | ||
@@ -120,3 +121,3 @@ } catch (err) { | ||
.option('-o, --output [outputFile]', 'write issues to file (no console)') | ||
.option('-c, --config [configFile]', 'configuration file') | ||
.option('-c, --config [configFile]', 'configuration file (JSON or YAML)') | ||
.option('-i, --ignore [file|directory|glob]', 'files to ignore/exclude', concatArray, []); | ||
@@ -123,0 +124,0 @@ |
{ | ||
"name": "markdownlint-cli", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"description": "MarkdownLint Command Line Interface", | ||
@@ -43,5 +43,6 @@ "main": "markdownlint.js", | ||
"glob": "~7.0.3", | ||
"js-yaml": "~3.11.0", | ||
"lodash.differencewith": "~4.5.0", | ||
"lodash.flatten": "~4.4.0", | ||
"markdownlint": "~0.9.0", | ||
"markdownlint": "~0.10.0", | ||
"rc": "~1.2.7" | ||
@@ -48,0 +49,0 @@ }, |
@@ -26,3 +26,3 @@ # markdownlint-cli [![Travis CI Build Status][travis-badge]][travis-url] [![AppVeyor CI Build Status][appveyor-badge]][appveyor-url] | ||
-o, --output [outputFile] write issues to file (no console) | ||
-c, --config [configFile] configuration file | ||
-c, --config [configFile] configuration file (JSON or YAML) | ||
-i, --ignore [file|directory|glob] files to ignore/exclude | ||
@@ -51,3 +51,3 @@ ``` | ||
CLI argument `--config` is not mandatory. If it is not provided, `markdownlint-cli` looks for file `.markdownlint.json` in current folder, or for file `.markdownlintrc` in current or all upper folders. The algorithm is described in details on [rc package page][rc-standards]. | ||
CLI argument `--config` is not mandatory. If it is not provided, `markdownlint-cli` looks for file `.markdownlint.json` in current folder, or for file `.markdownlintrc` in current or all upper folders. The algorithm is described in details on [rc package page][rc-standards]. If `--config` argument is provided, the file must be valid JSON or YAML. | ||
@@ -54,0 +54,0 @@ ## Related |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10320
141
9
+ Addedjs-yaml@~3.11.0
+ Addedesprima@4.0.1(transitive)
+ Addedjs-yaml@3.11.0(transitive)
+ Addedmarkdownlint@0.10.0(transitive)
- Removedmarkdownlint@0.9.0(transitive)
Updatedmarkdownlint@~0.10.0