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 +1 -1
- package/markdownlint.js +2 -3
- package/package.json +1 -1
package/README.md
CHANGED
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(
|
|
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(
|
|
270
|
+
const config = readConfiguration(options.config);
|
|
272
271
|
const lintOptions = {
|
|
273
272
|
config,
|
|
274
273
|
customRules,
|