mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Fix new violations from eslint-plugin-unicorn update.
This commit is contained in:
parent
c6d0ce5596
commit
4c00ffa2f0
14 changed files with 64 additions and 56 deletions
|
@ -989,7 +989,7 @@ module.exports.applyFix = applyFix;
|
|||
* @returns {string} Corrected content.
|
||||
*/
|
||||
function applyFixes(input, errors) {
|
||||
const lineEnding = getPreferredLineEnding(input, require("os"));
|
||||
const lineEnding = getPreferredLineEnding(input, require("node:os"));
|
||||
const lines = input.split(newLineRe);
|
||||
// Normalize fixInfo objects
|
||||
let fixInfos = errors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue