Skip to content

Commit

Permalink
style: reformat with latest prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
apostolos committed Jan 21, 2024
1 parent 401c857 commit cb56fec
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 61 deletions.
6 changes: 0 additions & 6 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
"options": {
"arrowParens": "always"
}
},
{
"files": "*.pug",
"options": {
"singleQuote": false
}
}
]
}
4 changes: 2 additions & 2 deletions client/components/forms/Selection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ export const Checkbox: FCC<CheckboxProps> = ({
{variant === 'switch'
? getVisualMark(UISwitch)
: checked || indeterminate
? getVisualMark(indeterminate ? UICheckboxIndeterminate : UICheckboxChecked)
: null}
? getVisualMark(indeterminate ? UICheckboxIndeterminate : UICheckboxChecked)
: null}
</Visual>
{children && (
<>
Expand Down
4 changes: 2 additions & 2 deletions client/components/router/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -936,8 +936,8 @@ function getToPathname(to: To): string | undefined {
return to === '' || (to as Path).pathname === ''
? '/'
: typeof to === 'string'
? parsePath(to).pathname
: to.pathname;
? parsePath(to).pathname
: to.pathname;
}

function stripBasename(pathname: string, basename: string): string | null {
Expand Down
4 changes: 2 additions & 2 deletions client/routes/customize/lib/gradle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function generateGradle({
script += `
\tcase OperatingSystem.FREE_BSD:
\t\tproject.ext.lwjglNatives = "natives-freebsd"
\t\tbreak`
\t\tbreak`;
}
if (linuxArches != 0) {
script +=
Expand Down Expand Up @@ -116,7 +116,7 @@ export function generateGradle({
\twhen {`;
if (platform.freebsd) {
script += `\n\t\t"FreeBSD".equals(name) ->
\t\t\t"natives-freebsd"`
\t\t\t"natives-freebsd"`;
}
if (linuxArches != 0) {
script +=
Expand Down
2 changes: 1 addition & 1 deletion client/routes/customize/lib/maven.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export function generateMaven({
return `\n\t<dependency>${nl3}<groupId>${groupId}</groupId>${nl3}<artifactId>${artifactId}</artifactId>${
hasBoM ? '' : `${nl3}<version>${v}</version>`
}${nl3}<classifier>${classifier}</classifier>${nl2}</dependency>`;
}
},
);

selectedAddons.forEach((id: Addon) => {
Expand Down
30 changes: 15 additions & 15 deletions client/routes/source/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,17 @@ const SourceRoute: React.FC = () => (

<Box>
<BuildBadge
title="FreeType"
href="https://github.com/LWJGL-CI/freetype/actions/workflows/lwjgl.yml"
src="https://img.shields.io/github/actions/workflow/status/LWJGL-CI/freetype/lwjgl.yml?branch=master"
title="FreeType"
href="https://github.com/LWJGL-CI/freetype/actions/workflows/lwjgl.yml"
src="https://img.shields.io/github/actions/workflow/status/LWJGL-CI/freetype/lwjgl.yml?branch=master"
/>
</Box>

<Box>
<BuildBadge
title="HarfBuzz"
href="https://github.com/LWJGL-CI/harfbuzz/actions/workflows/lwjgl.yml"
src="https://img.shields.io/github/actions/workflow/status/LWJGL-CI/harfbuzz/lwjgl.yml?branch=main"
title="HarfBuzz"
href="https://github.com/LWJGL-CI/harfbuzz/actions/workflows/lwjgl.yml"
src="https://img.shields.io/github/actions/workflow/status/LWJGL-CI/harfbuzz/lwjgl.yml?branch=main"
/>
</Box>

Expand All @@ -150,9 +150,9 @@ const SourceRoute: React.FC = () => (

<Box>
<BuildBadge
title="hwloc"
href="https://github.com/LWJGL-CI/hwloc/actions/workflows/lwjgl.yml"
src="https://img.shields.io/github/actions/workflow/status/LWJGL-CI/hwloc/lwjgl.yml?branch=master"
title="hwloc"
href="https://github.com/LWJGL-CI/hwloc/actions/workflows/lwjgl.yml"
src="https://img.shields.io/github/actions/workflow/status/LWJGL-CI/hwloc/lwjgl.yml?branch=master"
/>
</Box>

Expand All @@ -166,9 +166,9 @@ const SourceRoute: React.FC = () => (

<Box>
<BuildBadge
title="KTX"
href="https://github.com/LWJGL-CI/KTX-Software/actions/workflows/lwjgl.yml"
src="https://img.shields.io/github/actions/workflow/status/LWJGL-CI/KTX-Software/lwjgl.yml?branch=main"
title="KTX"
href="https://github.com/LWJGL-CI/KTX-Software/actions/workflows/lwjgl.yml"
src="https://img.shields.io/github/actions/workflow/status/LWJGL-CI/KTX-Software/lwjgl.yml?branch=main"
/>
</Box>

Expand All @@ -190,9 +190,9 @@ const SourceRoute: React.FC = () => (

<Box>
<BuildBadge
title="OpenXR Loader"
href="https://github.com/LWJGL-CI/OpenXR-SDK/actions/workflows/lwjgl.yml"
src="https://img.shields.io/github/actions/workflow/status/LWJGL-CI/OpenXR-SDK/lwjgl.yml?branch=main"
title="OpenXR Loader"
href="https://github.com/LWJGL-CI/OpenXR-SDK/actions/workflows/lwjgl.yml"
src="https://img.shields.io/github/actions/workflow/status/LWJGL-CI/OpenXR-SDK/lwjgl.yml?branch=main"
/>
</Box>

Expand Down
2 changes: 1 addition & 1 deletion client/theme/icons/fa/brands/freebsd.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { register } from '~/theme/icons/sheet';
register(
`<symbol id="fa/brands/freebsd" viewBox="0 0 448 512"><path d="M303.7 96.2c11.1-11.1 115.5-77 139.2-53.2 23.7 23.7-42.1 128.1-53.2 139.2-11.1 11.1-39.4.9-63.1-22.9-23.8-23.7-34.1-52-22.9-63.1zM109.9 68.1C73.6 47.5 22 24.6 5.6 41.1c-16.6 16.6 7.1 69.4 27.9 105.7 18.5-32.2 44.8-59.3 76.4-78.7zM406.7 174c3.3 11.3 2.7 20.7-2.7 26.1-20.3 20.3-87.5-27-109.3-70.1-18-32.3-11.1-53.4 14.9-48.7 5.7-3.6 12.3-7.6 19.6-11.6-29.8-15.5-63.6-24.3-99.5-24.3-119.1 0-215.6 96.5-215.6 215.6 0 119 96.5 215.6 215.6 215.6S445.3 380.1 445.3 261c0-38.4-10.1-74.5-27.7-105.8-3.9 7-7.6 13.3-10.9 18.8z"/></symbol>`,
);
);
8 changes: 4 additions & 4 deletions client/types/utils.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
type DeepReadonly<T> = T extends (infer R)[]
? DeepReadonlyArray<R>
: T extends Function
? T
: T extends object
? DeepReadonlyObject<T>
: T;
? T
: T extends object
? DeepReadonlyObject<T>
: T;

interface DeepReadonlyArray<T> extends ReadonlyArray<DeepReadonly<T>> {}

Expand Down
27 changes: 0 additions & 27 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"@babel/preset-react": "7.23.3",
"@babel/preset-typescript": "7.23.3",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
"@prettier/plugin-pug": "3.0.0",
"@react-aria/overlays": "3.20.0",
"@stitches/react": "1.2.8",
"@types/lodash-es": "4.17.12",
Expand Down

0 comments on commit cb56fec

Please sign in to comment.