From e9dd78fe873fce172079d8566cca1fdaefb25dfb Mon Sep 17 00:00:00 2001 From: Anthony Berg Date: Sat, 24 Jun 2023 16:31:30 +0100 Subject: [PATCH] refactor: run eslint on all files --- src/pages/index.mdx | 5 +++-- src/pages/msfs/index.mdx | 13 ++++++++----- src/pages/xp11/index.mdx | 11 ++++++----- src/theme.config.tsx | 33 +++++++++++++++++++-------------- 4 files changed, 36 insertions(+), 26 deletions(-) diff --git a/src/pages/index.mdx b/src/pages/index.mdx index 7c9b2be..e7dc870 100644 --- a/src/pages/index.mdx +++ b/src/pages/index.mdx @@ -7,8 +7,9 @@ a personal project of mine, and I hope that if you are using these guides, you'l flight simulators without the need of being locked into Windows! - These guides do not guarantee that simulators/addons will work. There will always be a risk buying a - product as most developers do not support their products on Linux. + These guides do not guarantee that simulators/addons will work. There will + always be a risk buying a product as most developers do not support their + products on Linux. The simulators and addons here are limited by the amount of funds I have, and as I am a university student, diff --git a/src/pages/msfs/index.mdx b/src/pages/msfs/index.mdx index 3ecf749..af5139e 100644 --- a/src/pages/msfs/index.mdx +++ b/src/pages/msfs/index.mdx @@ -12,9 +12,11 @@ to run this game would be to buy it on Microsoft Store does not work on Linux. - Do **NOT** change Proton versions or Verify Game Integrity once you have downloaded the entire game from the simulator - as this can cause you to lose everything you have downloaded/installed for the simulator! Make sure to make backups - of the `compdata` for Flight Simulator if this is absolutely necessary. + Do **NOT** change Proton versions or Verify Game Integrity once you have + downloaded the entire game from the simulator as this can cause you to lose + everything you have downloaded/installed for the simulator! Make sure to make + backups of the `compdata` for Flight Simulator if this is absolutely + necessary. ### Configuring @@ -58,8 +60,9 @@ C:\users\steamuser\AppData\Roaming\Microsoft Flight Simulator\Packages\Community ### Executable Installers - Dealing with developer's installers is usually requires more tinkering and therefore you may need more advanced - knowledge on Windows and Linux (alongside the Desktop Environment you're using)! + Dealing with developer's installers is usually requires more tinkering and + therefore you may need more advanced knowledge on Windows and Linux (alongside + the Desktop Environment you're using)! If you buy addons directly from a developer, it will be likely that you will be given an installer that is an diff --git a/src/pages/xp11/index.mdx b/src/pages/xp11/index.mdx index e5ca0d8..360094c 100644 --- a/src/pages/xp11/index.mdx +++ b/src/pages/xp11/index.mdx @@ -11,9 +11,10 @@ This simulator should be able to run out of the box with minimal problems. There simulator: - There is a newer version of X-Plane, X-Plane 12, keep in mind it may not be worth it to buy X-Plane 11 as it will - most likely reach the end of its life with support from addon developers soon. This guide only has information for - X-Plane 11 as I do not have access to X-Plane 12. + There is a newer version of X-Plane, X-Plane 12, keep in mind it may not be + worth it to buy X-Plane 11 as it will most likely reach the end of its life + with support from addon developers soon. This guide only has information for + X-Plane 11 as I do not have access to X-Plane 12. - [Steam](https://store.steampowered.com/app/269950/XPlane_11/) @@ -30,8 +31,8 @@ The only way to install addons that will only work on the Windows version of X-P through Proton. - Using Proton will remove Vulkan support, running the game in OpenGL, which will lead to a performance loss and - therefore is not recommended! + Using Proton will remove Vulkan support, running the game in OpenGL, which + will lead to a performance loss and therefore is not recommended! Most of these addons can be installed as usual with just a simple drag and drop into the X-Plane folder. However, some diff --git a/src/theme.config.tsx b/src/theme.config.tsx index 2a06f5d..f576250 100644 --- a/src/theme.config.tsx +++ b/src/theme.config.tsx @@ -5,12 +5,13 @@ export default { project: { link: 'https://github.com/smyalygames/flightsim-on-linux', }, - docsRepositoryBase: 'https://github.com/smyalygames/flightsim-on-linux/blob/main', + docsRepositoryBase: + 'https://github.com/smyalygames/flightsim-on-linux/blob/main', logo: Flight Sim on Linux, useNextSeoProps() { return { - titleTemplate: '%s - Flight Sim on Linux' - } + titleTemplate: '%s - Flight Sim on Linux', + }; }, head: () => { // TODO Figure out the reason for these ESLint errors @@ -18,24 +19,28 @@ export default { const { asPath, defaultLocale, locale } = useRouter(); // eslint-disable-next-line react-hooks/rules-of-hooks const { frontMatter } = useConfig(); - const url = 'https://www.flightsimonlinux.com' + (defaultLocale === locale ? asPath : `/${locale}${asPath}`); + const url = + 'https://www.flightsimonlinux.com' + + (defaultLocale === locale ? asPath : `/${locale}${asPath}`); return ( <> - + - ) + ); }, footer: { - text: ( - - © Anthony Berg {new Date().getFullYear()} - - ) - } -} + text: © Anthony Berg {new Date().getFullYear()}, + }, +};