Skip to content

Commit

Permalink
Lint cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JrMasterModelBuilder committed Oct 2, 2023
1 parent 1940c94 commit 72cebc5
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 19 deletions.
16 changes: 10 additions & 6 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions src/archive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
} from './util';

export interface IArchiveAfterReadSetAttributesEntry {
//
/**
* Extract path, relative.
*/
Expand All @@ -44,7 +43,6 @@ export interface IArchiveAfterReadSetAttributesEntry {
}

export interface IExtractOptions {
//
/**
* Replace whatever may be at the path.
* A directory will not replace another directory.
Expand Down Expand Up @@ -83,7 +81,6 @@ export interface IExtractOptions {
}

export interface IEntryInfo {
//
/**
* Entry archive.
*/
Expand Down
1 change: 0 additions & 1 deletion src/archive/dir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const walkOpts = {
};

export interface IEntryInfoDir extends IEntryInfo {
//
/**
* Entry archive.
*/
Expand Down
1 change: 0 additions & 1 deletion src/archive/hdi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const walkOpts = {
};

export interface IEntryInfoHdi extends IEntryInfo {
//
/**
* Entry archive.
*/
Expand Down
1 change: 0 additions & 1 deletion src/archive/tar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ const streamFromBufferListGenerator = (gen: AsyncGenerator<IBufferList>) => {
};

export interface IEntryInfoTar extends IEntryInfo {
//
/**
* Entry archive.
*/
Expand Down
1 change: 0 additions & 1 deletion src/archive/tar/bz2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import unbzip2Stream from 'unbzip2-stream';
import {ArchiveTar, EntryTar, IEntryInfoTar} from '../tar';

export interface IEntryInfoTarBz2 extends IEntryInfoTar {
//
/**
* Entry archive.
*/
Expand Down
1 change: 0 additions & 1 deletion src/archive/tar/gz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {createGunzip} from 'node:zlib';
import {ArchiveTar, EntryTar, IEntryInfoTar} from '../tar';

export interface IEntryInfoTarGz extends IEntryInfoTar {
//
/**
* Entry archive.
*/
Expand Down
2 changes: 0 additions & 2 deletions src/archive/zip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const yauzlEntryReadSymlink = async (
};

export interface IZipEntryExtraField {
//
/**
* Field ID.
*/
Expand All @@ -69,7 +68,6 @@ export interface IZipEntryExtraField {
}

export interface IEntryInfoZip extends IEntryInfo {
//
/**
* Entry archive.
*/
Expand Down
3 changes: 1 addition & 2 deletions src/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -16,7 +16,6 @@ const archives: typeof Archive[] = [
];

interface IArchiveExt {
//
/**
* Archive constructor.
*/
Expand Down
1 change: 0 additions & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {Readable} from 'node:stream';
import {PathType} from './types';

export interface IFsWalkOptions {
//
/**
* Ignore unreadable directores when walking directory.
*
Expand Down

0 comments on commit 72cebc5

Please sign in to comment.