Skip to content

Use novel refactor #155

Use novel refactor

Use novel refactor #155

Triggered via pull request September 21, 2025 12:26
@CD-ZCD-Z
synchronize #13
useNovel_Refactor
Status Failure
Total duration 36s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 8 warnings
ESLint
Process completed with exit code 1.
ESLint: src/screens/settings/dynamic/RenderSettings.tsx#L20
'route' is defined but never used. Allowed unused args must match /^_/u
ESLint: src/screens/novel/components/Chapter/ChapterDownloadButtons.tsx#L29
React Hook "useMemo" is called in function "_DownloadButton: React.FC<DownloadButtonProps>" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
ESLint: src/screens/novel/components/Chapter/ChapterDownloadButtons.tsx#L24
React Hook "useMemo" is called in function "_DownloadButton: React.FC<DownloadButtonProps>" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
ESLint: src/screens/novel/components/Chapter/ChapterDownloadButtons.tsx#L22
React Hook "useState" is called in function "_DownloadButton: React.FC<DownloadButtonProps>" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
ESLint: src/screens/novel/components/Chapter/ChapterBookmark.tsx#L7
React Hook "useTheme" is called in function "_ChapterBookmarkButton: React.FC" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
ESLint: src/screens/BrowseSourceScreen/BrowseSourceScreen.tsx#L82
Unexpected console statement
ESLint: src/screens/settings/settingsScreens/SettingsWebView.tsx#L301
React Hook useMemo has a missing dependency: 'preparedDummyHTML'. Either include it or remove the dependency array
ESLint: src/screens/settings/settingsScreens/SettingsWebView.tsx#L149
React Hook useMemo has missing dependencies: 'settings.removeText' and 'settings.replaceText'. Either include them or remove the dependency array. Outer scope values like 'dummyHTML' aren't valid dependencies because mutating them doesn't re-render the component
ESLint: src/screens/settings/settingsScreens/SettingsSubScreen.tsx#L36
Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state (https://reactjs.org/docs/reconciliation.html#elements-of-different-types). Instead, move this component definition out of the parent component “SettingsSubScreen” and pass data as props. If you want to allow component creation in props, set allowAsProps option to true
ESLint: src/screens/settings/SettingsCustomCodeScreen/Routes/CodeRoute.tsx#L122
React Hook React.useCallback has unnecessary dependencies: 'dLang' and 'snippetIndex'. Either exclude them or remove the dependency array
ESLint: src/screens/reader/components/WebViewReader.tsx#L408
Inline style: { marginBottom: 16 }
ESLint: src/screens/reader/components/WebViewReader.tsx#L399
Inline style: { marginBottom: 16 }
ESLint: src/screens/reader/components/WebViewReader.tsx#L213
React Hook useMemo has missing dependencies: 'settings.removeText' and 'settings.replaceText'. Either include them or remove the dependency array