Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency prettier to v3 #269

Merged
merged 6 commits into from
Nov 10, 2023
Merged
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
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
Loading