diff --git a/.eslintrc.js b/.eslintrc.js index ec557070..053f6252 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -45,8 +45,10 @@ module.exports = { overrides: [ { files: ['**/*.tsx'], + plugins: ['react'], rules: { 'react/prop-types': 'off', + 'react/self-closing-comp': 'error', }, }, ], diff --git a/src/components/Common/SlideCheckbox/index.tsx b/src/components/Common/SlideCheckbox/index.tsx index 320dd667..49ce4391 100644 --- a/src/components/Common/SlideCheckbox/index.tsx +++ b/src/components/Common/SlideCheckbox/index.tsx @@ -24,13 +24,13 @@ const SlideCheckbox = ({ onClick, checked = false }: SlideCheckboxProps) => { className={`${ checked ? 'bg-indigo-500' : 'bg-gray-700' } absolute mx-auto h-4 w-9 rounded-full transition-colors duration-200 ease-in-out`} - > + /> + /> ); }; diff --git a/src/components/Discover/CreateSlider/index.tsx b/src/components/Discover/CreateSlider/index.tsx index 9c7493d2..e7162de2 100644 --- a/src/components/Discover/CreateSlider/index.tsx +++ b/src/components/Discover/CreateSlider/index.tsx @@ -508,7 +508,7 @@ const CreateSlider = ({ onCreate, slider }: CreateSliderProps) => { typeof errors.data === 'string' && (
{errors.data}
)} -
+
{resultCount === 0 ? (
diff --git a/src/components/GenreCard/index.tsx b/src/components/GenreCard/index.tsx index eb821eeb..e5844806 100644 --- a/src/components/GenreCard/index.tsx +++ b/src/components/GenreCard/index.tsx @@ -58,7 +58,7 @@ const GenreCardPlaceholder = () => { return (
+ /> ); }; diff --git a/src/components/Layout/Sidebar/index.tsx b/src/components/Layout/Sidebar/index.tsx index 7bf9c4fb..1df32ac9 100644 --- a/src/components/Layout/Sidebar/index.tsx +++ b/src/components/Layout/Sidebar/index.tsx @@ -163,7 +163,7 @@ const Sidebar = ({ leaveTo="opacity-0" >
-
+
= ({ {errors.password && touched.password && (
{errors.password}
)} -
+
{baseUrl && ( { typeof errors.password === 'string' && (
{errors.password}
)} -
+
{passwordResetEnabled && ( { {additionalLoginOptions.length > 0 && (loginFormVisible ? (
-
+
{intl.formatMessage(messages.orsigninwith)} -
+
) : (

diff --git a/src/components/RequestModal/CollectionRequestModal.tsx b/src/components/RequestModal/CollectionRequestModal.tsx index 0af8f7ca..33829cdc 100644 --- a/src/components/RequestModal/CollectionRequestModal.tsx +++ b/src/components/RequestModal/CollectionRequestModal.tsx @@ -340,13 +340,13 @@ const CollectionRequestModal = ({ className={`${ isAllParts() ? 'bg-indigo-500' : 'bg-gray-800' } absolute mx-auto h-4 w-9 rounded-full transition-colors duration-200 ease-in-out`} - > + /> + /> @@ -423,7 +423,7 @@ const CollectionRequestModal = ({ ? 'bg-indigo-500' : 'bg-gray-700' } absolute mx-auto h-4 w-9 rounded-full transition-colors duration-200 ease-in-out`} - > + /> + /> + /> + /> @@ -649,7 +649,7 @@ const TvRequestModal = ({ ? 'bg-indigo-500' : 'bg-gray-700' } absolute mx-auto h-4 w-9 rounded-full transition-colors duration-200 ease-in-out`} - > + /> + /> diff --git a/src/components/Settings/SettingsJobsCache/index.tsx b/src/components/Settings/SettingsJobsCache/index.tsx index 2688a959..977fdade 100644 --- a/src/components/Settings/SettingsJobsCache/index.tsx +++ b/src/components/Settings/SettingsJobsCache/index.tsx @@ -495,7 +495,7 @@ const SettingsJobs = () => { {intl.formatMessage(messages.jobname)} {intl.formatMessage(messages.jobtype)} {intl.formatMessage(messages.nextexecution)} - + @@ -578,7 +578,7 @@ const SettingsJobs = () => { {intl.formatMessage(messages.cachekeys)} {intl.formatMessage(messages.cacheksize)} {intl.formatMessage(messages.cachevsize)} - + @@ -639,7 +639,7 @@ const SettingsJobs = () => { {intl.formatMessage(messages.dnscacheage)} - + diff --git a/src/components/Settings/SettingsLogs/index.tsx b/src/components/Settings/SettingsLogs/index.tsx index dbda869b..a1033e39 100644 --- a/src/components/Settings/SettingsLogs/index.tsx +++ b/src/components/Settings/SettingsLogs/index.tsx @@ -314,7 +314,7 @@ const SettingsLogs = () => { {intl.formatMessage(messages.level)} {intl.formatMessage(messages.label)} {intl.formatMessage(messages.message)} - + diff --git a/src/components/UserList/JellyfinImportModal.tsx b/src/components/UserList/JellyfinImportModal.tsx index 738d17e5..1b2b87e0 100644 --- a/src/components/UserList/JellyfinImportModal.tsx +++ b/src/components/UserList/JellyfinImportModal.tsx @@ -186,13 +186,13 @@ const JellyfinImportModal: React.FC = ({ className={`${ isAllUsers() ? 'bg-indigo-500' : 'bg-gray-800' } absolute mx-auto h-4 w-9 rounded-full transition-colors duration-200 ease-in-out`} - > + /> + /> @@ -230,7 +230,7 @@ const JellyfinImportModal: React.FC = ({ ? 'bg-indigo-500' : 'bg-gray-800' } absolute mx-auto h-4 w-9 rounded-full transition-colors duration-200 ease-in-out`} - > + /> + /> diff --git a/src/components/UserList/PlexImportModal.tsx b/src/components/UserList/PlexImportModal.tsx index fcf5441b..933caf29 100644 --- a/src/components/UserList/PlexImportModal.tsx +++ b/src/components/UserList/PlexImportModal.tsx @@ -152,13 +152,13 @@ const PlexImportModal = ({ onCancel, onComplete }: PlexImportProps) => { className={`${ isAllUsers() ? 'bg-indigo-500' : 'bg-gray-800' } absolute mx-auto h-4 w-9 rounded-full transition-colors duration-200 ease-in-out`} - > + /> + /> @@ -189,7 +189,7 @@ const PlexImportModal = ({ onCancel, onComplete }: PlexImportProps) => { ? 'bg-indigo-500' : 'bg-gray-800' } absolute mx-auto h-4 w-9 rounded-full transition-colors duration-200 ease-in-out`} - > + /> + /> diff --git a/src/components/UserProfile/ProfileHeader/index.tsx b/src/components/UserProfile/ProfileHeader/index.tsx index faebc0ad..9ec1fdf7 100644 --- a/src/components/UserProfile/ProfileHeader/index.tsx +++ b/src/components/UserProfile/ProfileHeader/index.tsx @@ -53,7 +53,7 @@ const ProfileHeader = ({ user, isSettingsPage }: ProfileHeaderProps) => { + />

diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 9fe3661e..78641050 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -206,7 +206,7 @@ const CoreApp: Omit = ({ + />