Skip to content

Commit

Permalink
Address 2 lint violations.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnson authored Feb 21, 2024
1 parent 6b5899d commit 8a73410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions markdownlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function yamlParse(text) {
}

function tomlParse(text) {
//It is necessary to add the prototype manually because of https://github.com/BinaryMuse/toml-node/issues/55
// It is necessary to add the prototype manually because of https://github.com/BinaryMuse/toml-node/issues/55
return require('deep-extend')({}, require('toml').parse(text));
}

Expand All @@ -49,7 +49,7 @@ const exitCodes = {
};

const projectConfigFiles = ['.markdownlint.jsonc', '.markdownlint.json', '.markdownlint.yaml', '.markdownlint.yml'];
// toml files can be (incorrectly) read by yamlParse but not vice versa -> tomlParse needs to go first in the list
// TOML files can be (incorrectly) read by yamlParse (but not vice versa), so tomlParse needs to go before yamlParse
const configParsers = [jsoncParse, tomlParse, yamlParse];
const fsOptions = {encoding: 'utf8'};
const processCwd = process.cwd();
Expand Down

0 comments on commit 8a73410

Please sign in to comment.