mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
Update @typescript-eslint/* to v2.1.0 (#2878)
This commit is contained in:
parent
a205e8a3c2
commit
f12acdb50b
31 changed files with 100 additions and 83 deletions
|
@ -7,7 +7,7 @@ import { build } from "./build.ts";
|
|||
export const bytesSymbol = Symbol("bytes");
|
||||
|
||||
function convertLineEndingsToNative(s: string): string {
|
||||
let nativeLineEnd = build.os == "win" ? "\r\n" : "\n";
|
||||
const nativeLineEnd = build.os == "win" ? "\r\n" : "\n";
|
||||
|
||||
let position = 0;
|
||||
|
||||
|
@ -19,7 +19,7 @@ function convertLineEndingsToNative(s: string): string {
|
|||
let result = token;
|
||||
|
||||
while (position < s.length) {
|
||||
let c = s.charAt(position);
|
||||
const c = s.charAt(position);
|
||||
if (c == "\r") {
|
||||
result += nativeLineEnd;
|
||||
position++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue