From 86f67bf0dc94ef4e49becb8505ea5cd51f978034 Mon Sep 17 00:00:00 2001 From: JrMasterModelBuilder Date: Tue, 10 Oct 2023 02:04:43 -0400 Subject: [PATCH] Lint cleanup --- .eslintrc.yaml | 16 ++++++++++------ src/bundle.ts | 1 - src/projector.ts | 2 -- src/util/mac.ts | 1 - src/util/windows.ts | 2 -- 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index c985d28..a01e60b 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/bundle.ts b/src/bundle.ts index 988157a..cfcdd44 100644 --- a/src/bundle.ts +++ b/src/bundle.ts @@ -31,7 +31,6 @@ const userExec = 0b001000000; * Options for adding resources. */ export interface IBundleResourceOptions { - // /** * Access time. */ diff --git a/src/projector.ts b/src/projector.ts index 168abb1..decaf34 100644 --- a/src/projector.ts +++ b/src/projector.ts @@ -12,7 +12,6 @@ import { import {pathRelativeBase, trimExtension} from './util'; export interface IIncludeXtraMapping { - // /** * Source path, case insensitive. * Does not need to match the full path. @@ -27,7 +26,6 @@ export interface IIncludeXtraMapping { } export interface IIncludeXtraMappingBest { - // /** * Map instance. */ diff --git a/src/util/mac.ts b/src/util/mac.ts index 6a1aaaf..16546cc 100644 --- a/src/util/mac.ts +++ b/src/util/mac.ts @@ -14,7 +14,6 @@ const CPU_TYPE_POWERPC = 0x00000012; const CPU_TYPE_I386 = 0x00000007; export interface IMachoType { - // /** * CPU type. */ diff --git a/src/util/windows.ts b/src/util/windows.ts index a8cbf43..1c86cf1 100644 --- a/src/util/windows.ts +++ b/src/util/windows.ts @@ -20,7 +20,6 @@ const IMAGE_SCN_CNT_INITIALIZED_DATA = 0x00000040; const IMAGE_SCN_CNT_UNINITIALIZED_DATA = 0x00000080; export interface IPeResourceReplace { - // /** * Replace icons if not null. * @@ -365,7 +364,6 @@ export async function windowsLauncher( } interface IPatcherPatch { - // /** * The bytes to find. */