Skip to content

Commit 5d98c8b

Browse files
committed
#7 configure ESLint to allow unused vars with underscore prefix
1 parent 8cb86d2 commit 5d98c8b

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

serverless/api/handlers/status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { APIGatewayProxyEvent, APIGatewayProxyResult } from "aws-lambda";
22

33
export const get = async (
4-
event: APIGatewayProxyEvent
4+
_event: APIGatewayProxyEvent
55
): Promise<APIGatewayProxyResult> => {
66
try {
77
// Basic health check

serverless/eslint.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ module.exports = tseslint.config(
2525
},
2626
},
2727
rules: {
28+
"no-unused-vars": "off",
29+
"@typescript-eslint/no-unused-vars": ["error", {
30+
"argsIgnorePattern": "^_",
31+
"varsIgnorePattern": "^_",
32+
"ignoreRestSiblings": true
33+
}],
2834
"max-len": [
2935
"error",
3036
{

0 commit comments

Comments
 (0)