fix(docs): Fix eslint-plugin-react errors

Remove unused components, and disable proptype checking for children
in OsTabs custom component since I can't figure out a way to assign
propTypes to it in an mdx file.
This commit is contained in:
Cem Aksoylar 2024-01-13 00:03:31 -08:00
parent 7196f9f075
commit 0dc04df09c
3 changed files with 1 additions and 39 deletions

View file

@ -3,25 +3,6 @@ title: Building and Flashing
sidebar_label: Building and Flashing sidebar_label: Building and Flashing
--- ---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
export const OsTabs = (props) => (
<Tabs
groupId="operating-systems"
defaultValue="debian"
values={[
{ label: "Debian/Ubuntu", value: "debian" },
{ label: "Raspberry OS", value: "raspberryos" },
{ label: "Fedora", value: "fedora" },
{ label: "Windows", value: "win" },
{ label: "macOS", value: "mac" },
]}
>
{props.children}
</Tabs>
);
## Building ## Building
From here on, building and flashing ZMK should all be done from the `app/` subdirectory of the ZMK checkout: From here on, building and flashing ZMK should all be done from the `app/` subdirectory of the ZMK checkout:

View file

@ -3,26 +3,6 @@ title: IDE Integration
sidebar_label: IDE Integration sidebar_label: IDE Integration
--- ---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
export const OsTabs = (props) => (
<Tabs
groupId="operating-systems"
defaultValue="debian"
values={[
{ label: "Debian/Ubuntu", value: "debian" },
{ label: "Windows", value: "win" },
{ label: "macOS", value: "mac" },
{ label: "Raspberry OS", value: "raspberryos" },
{ label: "Fedora", value: "fedora" },
{ label: "VS Code & Docker", value: "docker" },
]}
>
{props.children}
</Tabs>
);
## Visual Studio Code ## Visual Studio Code
Visual Studio Code needs to know some things about the project such as include Visual Studio Code needs to know some things about the project such as include

View file

@ -19,6 +19,7 @@ export const OsTabs = (props) => (
{ label: "Fedora", value: "fedora" }, { label: "Fedora", value: "fedora" },
]} ]}
> >
{/* eslint-disable-next-line */}
{props.children} {props.children}
</Tabs> </Tabs>
); );