Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/stage-1-commit.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: "Commit stage"

permissions:
contents: read

on:
workflow_call:
inputs:
Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"build": "JEKYLL_ENV=production bundle exec jekyll build --trace --config _config.yml,_config.version.yml",
"debug": "JEKYLL_ENV=development BUNDLE_GEMFILE=Gemfile bundle exec jekyll serve --config _config.yml,_config.dev.yml,_config.version.yml --limit_posts 100 --trace",
"generate-includes": "./generate-includes.sh",
"lint": "echo \"Documentation module has no code to lint\"",
"test:unit": "echo \"Documentation module has no unit tests\"",
"typecheck": "echo \"Documentation module has no typescript to typecheck\""
},
Expand Down
1 change: 0 additions & 1 deletion internal/datastore/.eslintignore

This file was deleted.

2 changes: 1 addition & 1 deletion internal/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@
"typecheck": "tsc --noEmit"
},
"types": "dist/index.d.ts",
"version": "1.0.6"
"version": "1.0.7"
}
6 changes: 3 additions & 3 deletions internal/events/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"isolatedModules": true,
"module": "commonjs",
"outDir": "dist",
"resolveJsonModule": true,
"rootDir": "src"
"resolveJsonModule": true
},
"exclude": [
"node_modules",
Expand All @@ -14,6 +13,7 @@
"extends": "../../tsconfig.base.json",
"include": [
"src/**/*",
"package.json"
"package.json",
"jest.config.ts"
]
}
1 change: 0 additions & 1 deletion lambdas/api-handler/.eslintignore

This file was deleted.

1 change: 1 addition & 0 deletions lambdas/api-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@aws-sdk/s3-request-presigner": "^3.925.0",
"@internal/datastore": "*",
"@internal/helpers": "*",
"aws-lambda": "^1.0.7",
"esbuild": "^0.25.11",
"pino": "^9.7.0",
"zod": "^4.1.11"
Expand Down
1 change: 0 additions & 1 deletion lambdas/authorizer/.eslintignore

This file was deleted.

2 changes: 2 additions & 0 deletions lambdas/authorizer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"@aws-sdk/client-dynamodb": "^3.858.0",
"@aws-sdk/lib-dynamodb": "^3.858.0",
"@internal/datastore": "*",
"@types/aws-lambda": "^8.10.148",
"aws-lambda": "^1.0.7",
"esbuild": "^0.25.11",
"pino": "^9.7.0",
"zod": "^4.1.11"
Expand Down
1 change: 0 additions & 1 deletion lambdas/letter-updates-transformer/.eslintignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ describe("letter-mapper", () => {
$LetterEvent.parse(event);
expect(event.type).toBe("uk.nhs.notify.supplier-api.letter.PRINTED.v1");
expect(event.dataschema).toBe(
`https://notify.nhs.uk/cloudevents/schemas/supplier-api/letter.PRINTED.${event.dataschemaversion}.schema.json`
`https://notify.nhs.uk/cloudevents/schemas/supplier-api/letter.PRINTED.${event.dataschemaversion}.schema.json`,
);
expect(event.dataschemaversion).toBe("1.0.6");
expect(event.dataschemaversion).toBe("1.0.7");
expect(event.subject).toBe("letter-origin/supplier-api/letter/id1");
expect(event.time).toBe("2025-11-24T15:55:18.000Z");
expect(event.recordedtime).toBe("2025-11-24T15:55:18.000Z");
Expand Down
1 change: 0 additions & 1 deletion lambdas/upsert-letter/.eslintignore

This file was deleted.

2 changes: 2 additions & 0 deletions lambdas/upsert-letter/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"dependencies": {
"@types/aws-lambda": "^8.10.148",
"aws-lambda": "^1.0.7",
"esbuild": "^0.24.0"
},
"devDependencies": {
Expand Down
80 changes: 44 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions scripts/tests/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

set -euo pipefail

cd "$(git rev-parse --show-toplevel)"

# This file is for you! Edit it to call your unit test suite. Note that the same
# file will be called if you run it locally as if you run it on CI.

# Replace the following line with something like:
#
# rails test:unit
# python manage.py test
# npm run test
#
# or whatever is appropriate to your project. You should *only* run your fast
# tests from here. If you want to run other test suites, see the predefined
# tasks in scripts/test.mk.

# run tests
npm ci
npm run lint --workspaces
22 changes: 22 additions & 0 deletions scripts/tests/typecheck.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

set -euo pipefail

cd "$(git rev-parse --show-toplevel)"

# This file is for you! Edit it to call your unit test suite. Note that the same
# file will be called if you run it locally as if you run it on CI.

# Replace the following line with something like:
#
# rails test:unit
# python manage.py test
# npm run test
#
# or whatever is appropriate to your project. You should *only* run your fast
# tests from here. If you want to run other test suites, see the predefined
# tasks in scripts/test.mk.

# run tests
npm ci
npm run typecheck --workspaces
1 change: 0 additions & 1 deletion scripts/utilities/letter-test-data/.eslintignore

This file was deleted.

Loading
Loading