Fix new violations from eslint-plugin-unicorn update.

This commit is contained in:
David Anson 2022-08-16 04:01:53 +00:00
parent c6d0ce5596
commit 4c00ffa2f0
14 changed files with 64 additions and 56 deletions

View file

@ -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