Skip to content

Commit

Permalink
chore(deps): update eslint packages (js) (major) (#1056)
Browse files Browse the repository at this point in the history
* chore(deps): update eslint packages (js)

* chore: refactor eslint configuration

* chore: add eslint config

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FantasticFiasco <mattias@kindb.org>
  • Loading branch information
renovate[bot] and FantasticFiasco committed Sep 22, 2024
1 parent 8e7fc28 commit 22219e1
Show file tree
Hide file tree
Showing 6 changed files with 453 additions and 503 deletions.
6 changes: 0 additions & 6 deletions infrastructure/.eslintrc

This file was deleted.

3 changes: 3 additions & 0 deletions infrastructure/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ node_modules
# CDK
.cdk.staging
cdk.out

# ESLint
!eslint.config.js
14 changes: 14 additions & 0 deletions infrastructure/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const eslint = require("@eslint/js");
const tseslint = require("typescript-eslint");

module.exports = tseslint.config(
{
files: ["**/*.ts"],
ignores: ["cdk.out/**", "**/*.d.ts"],
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
],
},
);
3 changes: 3 additions & 0 deletions infrastructure/lib/api-gateway/handlers/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ import { APIGatewayEvent } from 'aws-lambda'

interface HttpResponse {
statusCode: number
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
headers: { [name: string]: string }
body: string
}

interface ReceivedRequest {
method: string
path: string
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
queryStringParameters: { [name: string]: string[] | undefined } | null
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
headers: { [name: string]: string[] | undefined } | null
body: string | null
}
Expand Down
Loading

0 comments on commit 22219e1

Please sign in to comment.