diff --git a/.prettierrc b/.prettierrc index 3230df6d..30ca025a 100644 --- a/.prettierrc +++ b/.prettierrc @@ -9,12 +9,6 @@ "options": { "arrowParens": "always" } - }, - { - "files": "*.pug", - "options": { - "singleQuote": false - } } ] } diff --git a/client/components/forms/Selection.tsx b/client/components/forms/Selection.tsx index e8df998c..cb0c22b9 100644 --- a/client/components/forms/Selection.tsx +++ b/client/components/forms/Selection.tsx @@ -218,8 +218,8 @@ export const Checkbox: FCC = ({ {variant === 'switch' ? getVisualMark(UISwitch) : checked || indeterminate - ? getVisualMark(indeterminate ? UICheckboxIndeterminate : UICheckboxChecked) - : null} + ? getVisualMark(indeterminate ? UICheckboxIndeterminate : UICheckboxChecked) + : null} {children && ( <> diff --git a/client/components/router/index.tsx b/client/components/router/index.tsx index 2ab364f4..9af5d89e 100644 --- a/client/components/router/index.tsx +++ b/client/components/router/index.tsx @@ -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 { diff --git a/client/routes/customize/lib/gradle.ts b/client/routes/customize/lib/gradle.ts index 04fc951d..669be0d6 100644 --- a/client/routes/customize/lib/gradle.ts +++ b/client/routes/customize/lib/gradle.ts @@ -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 += @@ -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 += diff --git a/client/routes/customize/lib/maven.ts b/client/routes/customize/lib/maven.ts index 422a4a98..db6046ec 100644 --- a/client/routes/customize/lib/maven.ts +++ b/client/routes/customize/lib/maven.ts @@ -149,7 +149,7 @@ export function generateMaven({ return `\n\t${nl3}${groupId}${nl3}${artifactId}${ hasBoM ? '' : `${nl3}${v}` }${nl3}${classifier}${nl2}`; - } + }, ); selectedAddons.forEach((id: Addon) => { diff --git a/client/routes/source/index.tsx b/client/routes/source/index.tsx index 09aa576e..2408b22b 100644 --- a/client/routes/source/index.tsx +++ b/client/routes/source/index.tsx @@ -126,17 +126,17 @@ const SourceRoute: React.FC = () => ( @@ -150,9 +150,9 @@ const SourceRoute: React.FC = () => ( @@ -166,9 +166,9 @@ const SourceRoute: React.FC = () => ( @@ -190,9 +190,9 @@ const SourceRoute: React.FC = () => ( diff --git a/client/theme/icons/fa/brands/freebsd.ts b/client/theme/icons/fa/brands/freebsd.ts index e14cdf1a..05f6d10a 100644 --- a/client/theme/icons/fa/brands/freebsd.ts +++ b/client/theme/icons/fa/brands/freebsd.ts @@ -1,4 +1,4 @@ import { register } from '~/theme/icons/sheet'; register( ``, -); \ No newline at end of file +); diff --git a/client/types/utils.d.ts b/client/types/utils.d.ts index a6226438..694c6126 100644 --- a/client/types/utils.d.ts +++ b/client/types/utils.d.ts @@ -1,10 +1,10 @@ type DeepReadonly = T extends (infer R)[] ? DeepReadonlyArray : T extends Function - ? T - : T extends object - ? DeepReadonlyObject - : T; + ? T + : T extends object + ? DeepReadonlyObject + : T; interface DeepReadonlyArray extends ReadonlyArray> {} diff --git a/package-lock.json b/package-lock.json index ab37c79f..bd514b28 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,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", @@ -4302,32 +4301,6 @@ } } }, - "node_modules/@prettier/plugin-pug": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@prettier/plugin-pug/-/plugin-pug-3.0.0.tgz", - "integrity": "sha512-ERMMvGSJK/7CTc8OT7W/dtlV43sytyNeiCWckN0DIFepqwXotU0+coKMv5Wx6IWSNj7ZSjdNGBAA1nMPi388xw==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/Shinigami92" - }, - { - "type": "paypal", - "url": "https://www.paypal.com/donate/?hosted_button_id=L7GY729FBKTZY" - } - ], - "dependencies": { - "pug-lexer": "^5.0.1" - }, - "engines": { - "node": "^16.13.0 || >=18.0.0", - "npm": ">=7.10.0" - }, - "peerDependencies": { - "prettier": "^3.0.0" - } - }, "node_modules/@react-aria/focus": { "version": "3.16.0", "resolved": "https://registry.npmjs.org/@react-aria/focus/-/focus-3.16.0.tgz", diff --git a/package.json b/package.json index 468c1c74..be9d4ec4 100644 --- a/package.json +++ b/package.json @@ -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",