Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Feb 19, 2024
1 parent c0c7049 commit c7c8c80
Show file tree
Hide file tree
Showing 13 changed files with 466 additions and 625 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

5 changes: 0 additions & 5 deletions .eslintrc

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/code-style.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions .github/workflows/test-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jobs:
- name: Install dependencies
run: npm ci --no-audit

- name: Check source code with eslint
run: npx eslint .

- name: Format source code with prettier
run: npx prettier -c ./

- name: Run unit tests
run: npm test

Expand Down
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import config from '@bifravst/eslint-config-typescript'

export default [...config, { ignores: ['cdk.out/*'] }]
2 changes: 1 addition & 1 deletion lambda/onNetworkSurveyLocated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const handler = async (event: {
},
}),
)
if (Item === undefined) throw new Error(`Survey not found: ${name}!`)
if (Item === undefined) throw new Error(`Survey not found: ${surveyId}!`)

const survey = unmarshall(Item)

Expand Down
4 changes: 2 additions & 2 deletions lambda/parseSinkMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const buttonPressRegExp = /Button ([0-9]+) pressed/

const iotData = new IoTDataPlaneClient({})

const updateNodeData = async (
const updateNodeData = (
deviceId: string,
nodeId: string,
data: Record<string, unknown>,
Expand Down Expand Up @@ -69,7 +69,7 @@ parserInstance.onMessage((deviceId, message) => {
}
})

export const handler = async (event: KinesisStreamEvent): Promise<void> => {
export const handler = (event: KinesisStreamEvent): void => {
const buffer: Record<string, string[]> = {}
for (const {
kinesis: { data, partitionKey },
Expand Down
2 changes: 1 addition & 1 deletion lambda/validateWithTypeBox.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { describe, it } from 'node:test'
import assert from 'node:assert/strict'

void describe('validateWithTypeBox', () => {
void it('Should check input is valid', async () => {
void it('Should check input is valid', () => {
const maybeValid = validateWithTypeBox(Type.Number())(42)
assert.equal(
'value' in maybeValid && maybeValid.value,
Expand Down
Loading

0 comments on commit c7c8c80

Please sign in to comment.