mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
make std deno-lint clean (#6240)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
parent
ca1c2ee822
commit
d0970daacd
17 changed files with 70 additions and 30 deletions
|
@ -1,6 +1,6 @@
|
|||
// Copyright the Browserify authors. MIT License.
|
||||
// Ported from https://github.com/browserify/path-browserify/
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
|
||||
// TODO(kt3k): fix any types in this file
|
||||
|
||||
const { test } = Deno;
|
||||
|
@ -80,6 +80,7 @@ const unixSpecialCaseFormatTests = [
|
|||
[{}, ""],
|
||||
];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
function checkParseFormat(path: any, paths: any): void {
|
||||
paths.forEach(function (p: Array<Record<string, unknown>>) {
|
||||
const element = p[0];
|
||||
|
@ -96,6 +97,7 @@ function checkParseFormat(path: any, paths: any): void {
|
|||
});
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
function checkSpecialCaseParseFormat(path: any, testCases: any): void {
|
||||
testCases.forEach(function (testCase: Array<Record<string, unknown>>) {
|
||||
const element = testCase[0];
|
||||
|
@ -107,6 +109,7 @@ function checkSpecialCaseParseFormat(path: any, testCases: any): void {
|
|||
});
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
function checkFormat(path: any, testCases: unknown[][]): void {
|
||||
testCases.forEach(function (testCase) {
|
||||
assertEquals(path.format(testCase[0]), testCase[1]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue