diff options
Diffstat (limited to 'std/encoding')
-rw-r--r-- | std/encoding/_yaml/dumper/dumper.ts | 2 | ||||
-rw-r--r-- | std/encoding/_yaml/example/sample_document.ts | 3 | ||||
-rw-r--r-- | std/encoding/_yaml/loader/loader.ts | 3 | ||||
-rw-r--r-- | std/encoding/_yaml/loader/loader_state.ts | 2 | ||||
-rw-r--r-- | std/encoding/_yaml/utils.ts | 2 | ||||
-rw-r--r-- | std/encoding/toml.ts | 4 |
6 files changed, 5 insertions, 11 deletions
diff --git a/std/encoding/_yaml/dumper/dumper.ts b/std/encoding/_yaml/dumper/dumper.ts index ec517ffb2..b6de8aceb 100644 --- a/std/encoding/_yaml/dumper/dumper.ts +++ b/std/encoding/_yaml/dumper/dumper.ts @@ -3,8 +3,6 @@ // Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -/* eslint-disable max-len */ - import { YAMLError } from "../error.ts"; import type { RepresentFn, StyleVariant, Type } from "../type.ts"; import * as common from "../utils.ts"; diff --git a/std/encoding/_yaml/example/sample_document.ts b/std/encoding/_yaml/example/sample_document.ts index 8ef714d42..1284d2eff 100644 --- a/std/encoding/_yaml/example/sample_document.ts +++ b/std/encoding/_yaml/example/sample_document.ts @@ -1,5 +1,4 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -/* eslint-disable @typescript-eslint/explicit-function-return-type */ import { parse } from "../../yaml.ts"; @@ -7,7 +6,7 @@ import { parse } from "../../yaml.ts"; const yml = Deno.readFileSync(`${Deno.cwd()}/example/sample_document.yml`); const document = new TextDecoder().decode(yml); - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // deno-lint-ignore no-explicit-any const obj = parse(document) as Record<string, any>; console.log(obj); diff --git a/std/encoding/_yaml/loader/loader.ts b/std/encoding/_yaml/loader/loader.ts index b0f931cc0..16da3ba4a 100644 --- a/std/encoding/_yaml/loader/loader.ts +++ b/std/encoding/_yaml/loader/loader.ts @@ -3,8 +3,6 @@ // Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -/* eslint-disable max-len */ - import { YAMLError } from "../error.ts"; import { Mark } from "../mark.ts"; import type { Type } from "../type.ts"; @@ -31,7 +29,6 @@ const PATTERN_NON_PRINTABLE = const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/; const PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/; const PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i; -/* eslint-disable-next-line max-len */ const PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; diff --git a/std/encoding/_yaml/loader/loader_state.ts b/std/encoding/_yaml/loader/loader_state.ts index 81edeb28d..ce645930f 100644 --- a/std/encoding/_yaml/loader/loader_state.ts +++ b/std/encoding/_yaml/loader/loader_state.ts @@ -22,7 +22,7 @@ export interface LoaderStateOptions { onWarning?(this: null, e?: YAMLError): void; } -// eslint-disable-next-line @typescript-eslint/no-explicit-any +// deno-lint-ignore no-explicit-any export type ResultType = any[] | Record<string, any> | string; export class LoaderState extends State { diff --git a/std/encoding/_yaml/utils.ts b/std/encoding/_yaml/utils.ts index 3d4e48771..45ac6b4f8 100644 --- a/std/encoding/_yaml/utils.ts +++ b/std/encoding/_yaml/utils.ts @@ -3,7 +3,7 @@ // Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -// eslint-disable-next-line @typescript-eslint/no-explicit-any +// deno-lint-ignore no-explicit-any export type Any = any; export function isNothing(subject: unknown): subject is never { diff --git a/std/encoding/toml.ts b/std/encoding/toml.ts index 48035945c..add9880ce 100644 --- a/std/encoding/toml.ts +++ b/std/encoding/toml.ts @@ -452,7 +452,7 @@ class Parser { } obj[k] = v; if (v instanceof Object) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // deno-lint-ignore no-explicit-any this._propertyClean(v as any); } } @@ -486,7 +486,7 @@ class Dumper { this.srcObject = srcObjc; } dump(): string[] { - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // deno-lint-ignore no-explicit-any this.output = this._parse(this.srcObject as any); this.output = this._format(); return this.output; |