diff --git a/api.planx.uk/modules/gis/service/digitalLand.ts b/api.planx.uk/modules/gis/service/digitalLand.ts index ea1f9cf8aa..f115761ccc 100644 --- a/api.planx.uk/modules/gis/service/digitalLand.ts +++ b/api.planx.uk/modules/gis/service/digitalLand.ts @@ -107,9 +107,8 @@ async function go( if (res && res.count > 0 && res.entities) { res.entities.forEach((entity: { dataset: any }) => { // get the planx variable that corresponds to this entity's 'dataset', should never be null because our initial request is filtered on 'dataset' - const key = Object.keys(baseSchema).find( - (key) => - baseSchema[key]["digital-land-datasets"]?.includes(entity.dataset), + const key = Object.keys(baseSchema).find((key) => + baseSchema[key]["digital-land-datasets"]?.includes(entity.dataset), ); // because there can be many digital land datasets per planx variable, check if this key is already in our result if (key && Object.keys(formattedResult).includes(key)) { @@ -255,11 +254,8 @@ async function go( .then((responses) => { responses.forEach((response: any) => { // get the planx variable that corresponds to this 'dataset', should never be null because we only requested known datasets - const key = Object.keys(baseSchema).find( - (key) => - baseSchema[key]["digital-land-datasets"]?.includes( - response.dataset, - ), + const key = Object.keys(baseSchema).find((key) => + baseSchema[key]["digital-land-datasets"]?.includes(response.dataset), ); if (key) metadata[key] = response; }); diff --git a/api.planx.uk/modules/saveAndReturn/service/validateSession.ts b/api.planx.uk/modules/saveAndReturn/service/validateSession.ts index 96147cb962..605cd4ef56 100644 --- a/api.planx.uk/modules/saveAndReturn/service/validateSession.ts +++ b/api.planx.uk/modules/saveAndReturn/service/validateSession.ts @@ -104,8 +104,8 @@ async function reconcileSessionData({ const findParentNode = (nodeId: string): string | undefined => { const [parentId, _] = - Object.entries(currentFlow).find( - ([_, node]) => node.edges?.includes(nodeId), + Object.entries(currentFlow).find(([_, node]) => + node.edges?.includes(nodeId), ) || []; return parentId; }; diff --git a/api.planx.uk/package.json b/api.planx.uk/package.json index 28af949f39..04a4f1e579 100644 --- a/api.planx.uk/package.json +++ b/api.planx.uk/package.json @@ -106,7 +106,7 @@ "lint-staged": "^15.0.2", "nock": "^13.4.0", "node-dev": "^8.0.0", - "prettier": "^3.1.1", + "prettier": "^3.2.4", "rimraf": "^5.0.5", "supertest": "^6.3.3", "ts-jest": "^29.1.1", diff --git a/api.planx.uk/pnpm-lock.yaml b/api.planx.uk/pnpm-lock.yaml index a82db2d0b9..5145476200 100644 --- a/api.planx.uk/pnpm-lock.yaml +++ b/api.planx.uk/pnpm-lock.yaml @@ -257,8 +257,8 @@ devDependencies: specifier: ^8.0.0 version: 8.0.0 prettier: - specifier: ^3.1.1 - version: 3.1.1 + specifier: ^3.2.4 + version: 3.2.4 rimraf: specifier: ^5.0.5 version: 5.0.5 @@ -6641,17 +6641,10 @@ packages: hasBin: true dev: false - /prettier@3.1.1: - resolution: {integrity: sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==} - engines: {node: '>=14'} - hasBin: true - dev: true - /prettier@3.2.4: resolution: {integrity: sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==} engines: {node: '>=14'} hasBin: true - dev: false /pretty-format@23.6.0: resolution: {integrity: sha512-zf9NV1NSlDLDjycnwm6hpFATCGl/K1lt0R/GdkAK2O5LN/rwJoB+Mh93gGJjut4YbmecbfgLWVGSTCr0Ewvvbw==} diff --git a/api.planx.uk/tsconfig.json b/api.planx.uk/tsconfig.json index b1b929df20..e4f0ab0763 100644 --- a/api.planx.uk/tsconfig.json +++ b/api.planx.uk/tsconfig.json @@ -12,7 +12,7 @@ "rootDir": ".", "skipLibCheck": true, "strict": true, - "target": "es2021" + "target": "es2021", }, - "exclude": ["node_modules", "dist"] + "exclude": ["node_modules", "dist"], }