Skip to content

Commit

Permalink
fix all linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariano Goldman committed Jul 1, 2024
1 parent 3c23773 commit 281aeae
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 17 deletions.
13 changes: 12 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-floating-promises": 2
"@typescript-eslint/no-floating-promises": 2,
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ export async function up(pgm: MigrationBuilder): Promise<void> {
)
}

export async function down(pgm: MigrationBuilder): Promise<void> {}
export async function down(_pgm: MigrationBuilder): Promise<void> {}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export async function up(pgm: MigrationBuilder): Promise<void> {
)
}

export async function down(pgm: MigrationBuilder): Promise<void> {}
export async function down(_pgm: MigrationBuilder): Promise<void> {}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export async function up(pgm: MigrationBuilder): Promise<void> {
)
}

export async function down(pgm: MigrationBuilder): Promise<void> {}
export async function down(_pgm: MigrationBuilder): Promise<void> {}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { MigrationBuilder } from 'node-pg-migrate'

export async function up(pgm: MigrationBuilder): Promise<void> {
export async function up(_pgm: MigrationBuilder): Promise<void> {
// pgm.dropTable('pointer_history')
}

export async function down(pgm: MigrationBuilder): Promise<void> {
export async function down(_pgm: MigrationBuilder): Promise<void> {
// pgm.createTable(
// 'pointer_history',
// {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { MigrationBuilder } from 'node-pg-migrate'

export async function up(pgm: MigrationBuilder): Promise<void> {
export async function up(_pgm: MigrationBuilder): Promise<void> {
// pgm.dropTable('last_deployed_pointers')
}

export async function down(pgm: MigrationBuilder): Promise<void> {
export async function down(_pgm: MigrationBuilder): Promise<void> {
// pgm.createTable(
// 'last_deployed_pointers',
// {
Expand Down
13 changes: 4 additions & 9 deletions lambdas/src/utils/SmartContentClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,18 @@ export class SmartContentClient implements ContentClient {
return this.onlyKnownHeaders(response.headers as any)
}

deployEntity(deployData: DeploymentData, fix?: boolean, options?: RequestOptions): Promise<number> {
deployEntity(_deployData: DeploymentData, _fix?: boolean, _options?: RequestOptions): Promise<number> {
throw new Error('New deployments are currently not supported')
}

deploy(deployData: DeploymentData, options?: RequestOptions): Promise<unknown> {
deploy(_deployData: DeploymentData, _options?: RequestOptions): Promise<unknown> {
throw new Error('New deployments are currently not supported')
}

buildEntity({ type, pointers, files, metadata }: BuildEntityOptions): Promise<DeploymentPreparationData> {
buildEntity(_: BuildEntityOptions): Promise<DeploymentPreparationData> {
throw new Error('New deployments are currently not supported')
}
buildEntityWithoutNewFiles({
type,
pointers,
hashesByKey,
metadata
}: BuildEntityWithoutFilesOptions): Promise<DeploymentPreparationData> {
buildEntityWithoutNewFiles(_: BuildEntityWithoutFilesOptions): Promise<DeploymentPreparationData> {
throw new Error('New deployments are currently not supported')
}

Expand Down

0 comments on commit 281aeae

Please sign in to comment.