refactor: run eslint on all files

This commit is contained in:
Anthony Berg
2023-06-24 16:31:30 +01:00
parent 94dce3e277
commit e9dd78fe87
4 changed files with 36 additions and 26 deletions

View File

@@ -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!
<Callout type="warning" emoji="⚠️">
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.
</Callout>
The simulators and addons here are limited by the amount of funds I have, and as I am a university student,

View File

@@ -12,9 +12,11 @@ to run this game would be to buy it on
Microsoft Store does not work on Linux.
<Callout type="error" emoji="⚠️">
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.
</Callout>
### Configuring
@@ -58,8 +60,9 @@ C:\users\steamuser\AppData\Roaming\Microsoft Flight Simulator\Packages\Community
### Executable Installers
<Callout type="warning" emoji="⚠️">
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)!
</Callout>
If you buy addons directly from a developer, it will be likely that you will be given an installer that is an

View File

@@ -11,8 +11,9 @@ This simulator should be able to run out of the box with minimal problems. There
simulator:
<Callout type="warning" emoji="⚠️">
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
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.
</Callout>
@@ -30,8 +31,8 @@ The only way to install addons that will only work on the Windows version of X-P
through Proton.
<Callout type="warning" emoji="⚠️">
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!
</Callout>
Most of these addons can be installed as usual with just a simple drag and drop into the X-Plane folder. However, some

View File

@@ -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: <span>Flight Sim on Linux</span>,
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 (
<>
<meta property="og:url" content={url} />
<meta property="og:title" content={frontMatter.title || 'Flight Sim on Linux'} />
<meta
property="og:title"
content={frontMatter.title || 'Flight Sim on Linux'}
/>
<meta
property="og:description"
content={frontMatter.description || 'Guides to running Flight Simulators on Linux'}
content={
frontMatter.description ||
'Guides to running Flight Simulators on Linux'
}
/>
</>
)
);
},
footer: {
text: (
<span>
© Anthony Berg {new Date().getFullYear()}
</span>
)
}
}
text: <span>© Anthony Berg {new Date().getFullYear()}</span>,
},
};