Skip to content

Commit af1fe2b

Browse files
authored
chore(commons): Remove eslint from commons pkg (#352)
* Removed eslint from commons pkg * Fixed linting issues
1 parent 2ab2d15 commit af1fe2b

File tree

3 files changed

+7
-238
lines changed

3 files changed

+7
-238
lines changed

packages/commons/.eslintrc.json

-231
This file was deleted.

packages/commons/src/utils/lambda/LambdaInterface.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Handler } from 'aws-lambda';
22

33
interface LambdaInterface {
4-
handler: Handler;
4+
handler: Handler
55
}
66

77
export {

packages/commons/tests/unit/LambdaInterface.test.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Callback, Context, Handler } from 'aws-lambda';
1+
import { Callback, Context } from 'aws-lambda';
22
import { ContextExamples, LambdaInterface } from '../../src';
33

44
describe('LambdaInterface', () => {
@@ -8,13 +8,13 @@ describe('LambdaInterface', () => {
88
// @ts-ignore
99
public handler<TEvent, TResult>(
1010
_event: TEvent,
11-
_context: Context,
11+
context: Context,
1212
_callback: Callback<TResult>,
1313
): void | Promise<TResult> {
14-
_context.done();
15-
_context.fail(new Error('test Error'));
16-
_context.succeed('test succeed');
17-
_context.getRemainingTimeInMillis();
14+
context.done();
15+
context.fail(new Error('test Error'));
16+
context.succeed('test succeed');
17+
context.getRemainingTimeInMillis();
1818
}
1919
}
2020

0 commit comments

Comments
 (0)