diff --git a/.eslintrc.json b/.eslintrc.json index 052ba9f4..958fc4d8 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -78,7 +78,6 @@ "@typescript-eslint/require-await": "error", "@typescript-eslint/sort-type-union-intersection-members": "error", "curly": "error", - "dot-notation": "off", "import/extensions": [ "error", "ignorePackages", diff --git a/components/apps/BoxedWine/config.ts b/components/apps/BoxedWine/config.ts index efa39114..e022fa5b 100644 --- a/components/apps/BoxedWine/config.ts +++ b/components/apps/BoxedWine/config.ts @@ -1,7 +1,6 @@ import processDirectory from "contexts/process/directory"; -const { height = 0, width = 0 } = - processDirectory["BoxedWine"].defaultSize || {}; +const { height = 0, width = 0 } = processDirectory.BoxedWine.defaultSize || {}; const configParams = { "inline-default-ondemand-root-overlay": "/wine1.7.55-v8-min-online", diff --git a/components/apps/Browser/index.tsx b/components/apps/Browser/index.tsx index 3025f6bd..3363b76e 100644 --- a/components/apps/Browser/index.tsx +++ b/components/apps/Browser/index.tsx @@ -48,7 +48,7 @@ const Browser: FC = ({ id }) => { setLoading(true); setSrcDoc(""); if (isHtml) setSrcDoc((await readFile(addressInput)).toString()); - setIcon(id, processDirectory["Browser"].icon); + setIcon(id, processDirectory.Browser.icon); if (!isHtml) { const addressUrl = await getUrlOrSearch(addressInput); diff --git a/components/apps/Terminal/config.ts b/components/apps/Terminal/config.ts index b501a289..ae6ce802 100644 --- a/components/apps/Terminal/config.ts +++ b/components/apps/Terminal/config.ts @@ -13,7 +13,7 @@ export const config: ITerminalOptions = { letterSpacing: 0.5, rows: 20, theme: { - background: processDirectory["Terminal"].backgroundColor, + background: processDirectory.Terminal.backgroundColor, foreground: "rgb(204, 204, 204)", }, }; diff --git a/components/apps/TinyMCE/useTinyMCE.ts b/components/apps/TinyMCE/useTinyMCE.ts index 9f77abdc..68c7b4b4 100644 --- a/components/apps/TinyMCE/useTinyMCE.ts +++ b/components/apps/TinyMCE/useTinyMCE.ts @@ -56,7 +56,7 @@ const useTinyMCE = ( if (iframe?.contentWindow) { [...iframe.contentWindow.document.links].forEach((link) => link.addEventListener("click", (event) => { - const mceHref = link.dataset["mceHref"] || ""; + const mceHref = link.dataset.mceHref || ""; const isRelative = relative( mceHref.startsWith("/") ? mceHref : `/${mceHref}`, diff --git a/components/apps/Webamp/useWebamp.ts b/components/apps/Webamp/useWebamp.ts index b680a8d8..e706d13f 100644 --- a/components/apps/Webamp/useWebamp.ts +++ b/components/apps/Webamp/useWebamp.ts @@ -254,7 +254,7 @@ const useWebamp = (id: string): Webamp => { } } } else { - title(id, processDirectory["Webamp"].title); + title(id, processDirectory.Webamp.title); } }), webamp._actionEmitter.on("SET_SKIN_DATA", async ({ data }) => { diff --git a/components/system/Files/FileEntry/functions.ts b/components/system/Files/FileEntry/functions.ts index 13b8afb7..80382f20 100644 --- a/components/system/Files/FileEntry/functions.ts +++ b/components/system/Files/FileEntry/functions.ts @@ -343,7 +343,7 @@ export const getInfoWithExtension = ( ? cachedIconPath : `https://i.ytimg.com/vi/${ytId}/mqdefault.jpg`, pid, - subIcons: [processDirectory["VideoPlayer"].icon], + subIcons: [processDirectory.VideoPlayer.icon], url, }) ); @@ -425,10 +425,10 @@ export const getInfoWithExtension = ( }) ); } else if (AUDIO_FILE_EXTENSIONS.has(extension)) { - getInfoByFileExtension(processDirectory["VideoPlayer"].icon); + getInfoByFileExtension(processDirectory.VideoPlayer.icon); } else if (VIDEO_FILE_EXTENSIONS.has(extension)) { - subIcons.push(processDirectory["VideoPlayer"].icon); - getInfoByFileExtension(processDirectory["VideoPlayer"].icon, (signal) => + subIcons.push(processDirectory.VideoPlayer.icon); + getInfoByFileExtension(processDirectory.VideoPlayer.icon, (signal) => fs.readFile(path, async (error, contents = Buffer.from("")) => { if (!error) { const video = document.createElement("video"); diff --git a/components/system/StartMenu/index.tsx b/components/system/StartMenu/index.tsx index e994bd94..8a31bd5d 100644 --- a/components/system/StartMenu/index.tsx +++ b/components/system/StartMenu/index.tsx @@ -49,7 +49,7 @@ const StartMenu: FC = ({ toggleStartMenu }) => { }; const startMenuTransition = useStartMenuTransition(); const { height } = - (startMenuTransition.variants?.["active"] as StyleVariant) ?? {}; + (startMenuTransition.variants?.active as StyleVariant) ?? {}; useLayoutEffect(() => menuRef.current?.focus(PREVENT_SCROLL), []); diff --git a/tsconfig.json b/tsconfig.json index 695f2a05..96d18a7f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,6 @@ "moduleResolution": "node", "noEmit": true, "noImplicitReturns": true, - "noPropertyAccessFromIndexSignature": true, "plugins": [{ "name": "next" }], "resolveJsonModule": true, "skipLibCheck": true,