From 72cebc51748df3eb3cb1eff86ca4606b9ed7b973 Mon Sep 17 00:00:00 2001 From: JrMasterModelBuilder Date: Sun, 1 Oct 2023 23:18:54 -0400 Subject: [PATCH] Lint cleanup --- .eslintrc.yaml | 16 ++++++++++------ src/archive.ts | 3 --- src/archive/dir.ts | 1 - src/archive/hdi.ts | 1 - src/archive/tar.ts | 1 - src/archive/tar/bz2.ts | 1 - src/archive/tar/gz.ts | 1 - src/archive/zip.ts | 2 -- src/create.ts | 3 +-- src/util.ts | 1 - 10 files changed, 11 insertions(+), 19 deletions(-) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 768211a..43d1418 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -129,12 +129,6 @@ rules: line-comment-position: - error - position: above - lines-around-comment: - - error - - beforeBlockComment: true - allowBlockStart: true - allowObjectStart: true - allowArrayStart: true lines-between-class-members: - error - always @@ -285,6 +279,16 @@ rules: '@typescript-eslint/prefer-function-type': error '@typescript-eslint/unified-signatures': error '@typescript-eslint/no-confusing-non-null-assertion': error + '@typescript-eslint/lines-around-comment': + - error + - beforeBlockComment: true + allowBlockStart: true + allowObjectStart: true + allowArrayStart: true + allowEnumStart: true + allowInterfaceStart: true + allowModuleStart: true + allowTypeStart: true # TypeScript Project: '@typescript-eslint/no-unnecessary-qualifier': error diff --git a/src/archive.ts b/src/archive.ts index 3fb4dd4..3a7e419 100644 --- a/src/archive.ts +++ b/src/archive.ts @@ -26,7 +26,6 @@ import { } from './util'; export interface IArchiveAfterReadSetAttributesEntry { - // /** * Extract path, relative. */ @@ -44,7 +43,6 @@ export interface IArchiveAfterReadSetAttributesEntry { } export interface IExtractOptions { - // /** * Replace whatever may be at the path. * A directory will not replace another directory. @@ -83,7 +81,6 @@ export interface IExtractOptions { } export interface IEntryInfo { - // /** * Entry archive. */ diff --git a/src/archive/dir.ts b/src/archive/dir.ts index a73faf7..0b19a28 100644 --- a/src/archive/dir.ts +++ b/src/archive/dir.ts @@ -20,7 +20,6 @@ const walkOpts = { }; export interface IEntryInfoDir extends IEntryInfo { - // /** * Entry archive. */ diff --git a/src/archive/hdi.ts b/src/archive/hdi.ts index 4a6dd23..ddedb3f 100644 --- a/src/archive/hdi.ts +++ b/src/archive/hdi.ts @@ -21,7 +21,6 @@ const walkOpts = { }; export interface IEntryInfoHdi extends IEntryInfo { - // /** * Entry archive. */ diff --git a/src/archive/tar.ts b/src/archive/tar.ts index b3367b8..b15db3a 100644 --- a/src/archive/tar.ts +++ b/src/archive/tar.ts @@ -65,7 +65,6 @@ const streamFromBufferListGenerator = (gen: AsyncGenerator) => { }; export interface IEntryInfoTar extends IEntryInfo { - // /** * Entry archive. */ diff --git a/src/archive/tar/bz2.ts b/src/archive/tar/bz2.ts index 192137b..1cc452a 100644 --- a/src/archive/tar/bz2.ts +++ b/src/archive/tar/bz2.ts @@ -5,7 +5,6 @@ import unbzip2Stream from 'unbzip2-stream'; import {ArchiveTar, EntryTar, IEntryInfoTar} from '../tar'; export interface IEntryInfoTarBz2 extends IEntryInfoTar { - // /** * Entry archive. */ diff --git a/src/archive/tar/gz.ts b/src/archive/tar/gz.ts index 2f3a4e7..9421994 100644 --- a/src/archive/tar/gz.ts +++ b/src/archive/tar/gz.ts @@ -5,7 +5,6 @@ import {createGunzip} from 'node:zlib'; import {ArchiveTar, EntryTar, IEntryInfoTar} from '../tar'; export interface IEntryInfoTarGz extends IEntryInfoTar { - // /** * Entry archive. */ diff --git a/src/archive/zip.ts b/src/archive/zip.ts index 9040fc0..6d93dc8 100644 --- a/src/archive/zip.ts +++ b/src/archive/zip.ts @@ -56,7 +56,6 @@ const yauzlEntryReadSymlink = async ( }; export interface IZipEntryExtraField { - // /** * Field ID. */ @@ -69,7 +68,6 @@ export interface IZipEntryExtraField { } export interface IEntryInfoZip extends IEntryInfo { - // /** * Entry archive. */ diff --git a/src/create.ts b/src/create.ts index 0b4dcff..98a66c4 100644 --- a/src/create.ts +++ b/src/create.ts @@ -6,7 +6,7 @@ import {ArchiveTarBz2} from './archive/tar/bz2'; import {ArchiveTarGz} from './archive/tar/gz'; import {ArchiveZip} from './archive/zip'; -const archives: typeof Archive[] = [ +const archives: (typeof Archive)[] = [ ArchiveDir, ArchiveHdi, ArchiveTar, @@ -16,7 +16,6 @@ const archives: typeof Archive[] = [ ]; interface IArchiveExt { - // /** * Archive constructor. */ diff --git a/src/util.ts b/src/util.ts index 726daaa..4d00c79 100644 --- a/src/util.ts +++ b/src/util.ts @@ -14,7 +14,6 @@ import {Readable} from 'node:stream'; import {PathType} from './types'; export interface IFsWalkOptions { - // /** * Ignore unreadable directores when walking directory. *