Skip to content

Commit

Permalink
Merge pull request #269 from ral-facilities/renovate/prettier-3.x
Browse files Browse the repository at this point in the history
Update dependency prettier to v3
  • Loading branch information
kaperoo authored Nov 10, 2023
2 parents 8586712 + ca9ddfd commit 5076a8a
Show file tree
Hide file tree
Showing 28 changed files with 376 additions and 41 deletions.
199 changes: 184 additions & 15 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions .yarn/sdks/prettier/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prettier",
"version": "2.8.0-sdk",
"main": "./index.js",
"version": "3.0.1-sdk",
"main": "./index.cjs",
"type": "commonjs"
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@
"eslint-config-react-app": "7.0.1",
"eslint-plugin-cypress": "2.13.3",
"eslint-plugin-no-only-tests": "3.1.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-prettier": "5.0.0",
"express": "4.18.1",
"husky": "8.0.1",
"jest-canvas-mock": "2.5.0",
"lint-staged": "13.2.2",
"msw": "1.2.1",
"prettier": "2.8.0",
"prettier": "3.0.1",
"react-beautiful-dnd-test-utils": "4.1.1",
"serve": "14.2.0",
"serve-static": "1.15.0",
Expand Down
6 changes: 3 additions & 3 deletions src/api/records.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export const useRecordsPaginated = (): UseQueryResult<
searchParams: SearchParams;
filters: string[];
projection: string[];
}
},
]
>(
[
Expand Down Expand Up @@ -405,7 +405,7 @@ export const usePlotRecords = (
searchParams: SearchParams;
filters: string[];
projection: string[];
}
},
]
>(
[
Expand Down Expand Up @@ -493,7 +493,7 @@ export const useThumbnails = (
sort: SortType;
searchParams: SearchParams;
filters: string[];
}
},
]
>(
[
Expand Down
2 changes: 1 addition & 1 deletion src/filtering/filterDialogue.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const FilterDialogue = (props: FilterDialogueProps) => {
type: 'channel',
value: channel.systemName,
label: channel?.name ?? channel.systemName,
} as Token)
}) as Token
);
},
});
Expand Down
5 changes: 2 additions & 3 deletions src/filtering/filterParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,8 @@ class TokenInput {
return this.tokens[this.pos++];
} else {
throw new ParserError(
`Expected token from types [${types}] at token ${
this.peek(0)?.value
}` // TODO: better error message?
`Expected token from types [${types}] at token ${this.peek(0)
?.value}` // TODO: better error message?
);
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/images/falseColourPanel.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ const FalseColourPanel = (props: FalseColourPanelProps) => {
?.filter((colourmap) => colourmap.endsWith('_r'))
.map((colourmap) => colourmap.replace('_r', ''));

const colourMapsWithReverse = colourMapsNames?.filter((value) =>
colourMapsReverseNames?.includes(value)
const colourMapsWithReverse = colourMapsNames?.filter(
(value) => colourMapsReverseNames?.includes(value)
);

return (
Expand Down
Loading

0 comments on commit 5076a8a

Please sign in to comment.