diff --git a/.eslintrc.json b/.eslintrc.json index fbf65869..e547feeb 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -139,7 +139,10 @@ "react/hook-use-state": "error", "react-hooks/exhaustive-deps": "error", "react/display-name": "off", - "react/jsx-filename-extension": ["error", { "extensions": [".tsx"] }], + "react/jsx-filename-extension": [ + "error", + { "allow": "as-needed", "extensions": [".tsx"] } + ], "react/jsx-props-no-spreading": "off", "react/jsx-sort-props": [ "error", @@ -224,7 +227,7 @@ }, "overrides": [ { - "files": ["__tests__/**/*.spec.tsx"], + "files": ["__tests__/**/*.spec.ts"], "rules": { "playwright/no-standalone-expect": "off" } diff --git a/__tests__/utils/functions.spec.tsx b/__tests__/utils/functions.spec.ts similarity index 100% rename from __tests__/utils/functions.spec.tsx rename to __tests__/utils/functions.spec.ts diff --git a/components/apps/Browser/useBookmarkMenu.tsx b/components/apps/Browser/useBookmarkMenu.ts similarity index 100% rename from components/apps/Browser/useBookmarkMenu.tsx rename to components/apps/Browser/useBookmarkMenu.ts diff --git a/components/apps/Browser/useHistoryMenu.tsx b/components/apps/Browser/useHistoryMenu.ts similarity index 100% rename from components/apps/Browser/useHistoryMenu.tsx rename to components/apps/Browser/useHistoryMenu.ts diff --git a/components/apps/Messenger/StyledGetMoreMessages.tsx b/components/apps/Messenger/StyledGetMoreMessages.ts similarity index 100% rename from components/apps/Messenger/StyledGetMoreMessages.tsx rename to components/apps/Messenger/StyledGetMoreMessages.ts diff --git a/components/apps/StableDiffusion/StyledStableDiffusion.tsx b/components/apps/StableDiffusion/StyledStableDiffusion.ts similarity index 100% rename from components/apps/StableDiffusion/StyledStableDiffusion.tsx rename to components/apps/StableDiffusion/StyledStableDiffusion.ts diff --git a/components/system/Dialogs/OpenWith/StyledOpenWith.tsx b/components/system/Dialogs/OpenWith/StyledOpenWith.ts similarity index 100% rename from components/system/Dialogs/OpenWith/StyledOpenWith.tsx rename to components/system/Dialogs/OpenWith/StyledOpenWith.ts diff --git a/components/system/Dialogs/OpenWith/StyledOpenWithList.tsx b/components/system/Dialogs/OpenWith/StyledOpenWithList.ts similarity index 100% rename from components/system/Dialogs/OpenWith/StyledOpenWithList.tsx rename to components/system/Dialogs/OpenWith/StyledOpenWithList.ts diff --git a/components/system/Dialogs/Properties/StyledProperties.tsx b/components/system/Dialogs/Properties/StyledProperties.ts similarity index 100% rename from components/system/Dialogs/Properties/StyledProperties.tsx rename to components/system/Dialogs/Properties/StyledProperties.ts diff --git a/components/system/Files/FileManager/StyledEmpty.tsx b/components/system/Files/FileManager/StyledEmpty.ts similarity index 100% rename from components/system/Files/FileManager/StyledEmpty.tsx rename to components/system/Files/FileManager/StyledEmpty.ts diff --git a/contexts/fileSystem/index.tsx b/contexts/fileSystem/index.ts similarity index 100% rename from contexts/fileSystem/index.tsx rename to contexts/fileSystem/index.ts diff --git a/contexts/process/index.tsx b/contexts/process/index.ts similarity index 100% rename from contexts/process/index.tsx rename to contexts/process/index.ts diff --git a/contexts/session/index.tsx b/contexts/session/index.ts similarity index 100% rename from contexts/session/index.tsx rename to contexts/session/index.ts diff --git a/contexts/viewport/index.tsx b/contexts/viewport/index.ts similarity index 100% rename from contexts/viewport/index.tsx rename to contexts/viewport/index.ts diff --git a/hooks/useProcessesRef.tsx b/hooks/useProcessesRef.ts similarity index 100% rename from hooks/useProcessesRef.tsx rename to hooks/useProcessesRef.ts