chore:Update ESLint and remove unused code #849
Annotations
7 errors and 8 warnings
|
PR
Process completed with exit code 1.
|
|
PR:
src/routes/admin/roles.index.tsx#L462
React Hook "useCapabilities" is called conditionally. React Hooks must be called in the exact same order in every component render
|
|
PR:
src/components/OpenSourceStats.tsx#L81
React Hook "useSuspenseQuery" is called in function "_OssStats" 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"
|
|
PR:
src/components/MarkdownLink.tsx#L13
Definition for rule 'jsx-a11y/anchor-has-content' was not found
|
|
PR:
src/components/Markdown.tsx#L116
Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
|
|
PR:
src/components/Markdown.tsx#L74
Definition for rule 'jsx-a11y/alt-text' was not found
|
|
PR:
src/components/FeedEntry.tsx#L42
'FeedEntry' is already defined
|
|
PR:
src/hooks/useSessionStorage.ts#L21
React Hook React.useEffect has a missing dependency: 'key'. Either include it or remove the dependency array
|
|
PR
React Hook useEffect has a missing dependency: 'onResize'. Either include it or remove the dependency array. If 'onResize' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
|
PR
React Hook useEffect has a missing dependency: 'rerender'. Either include it or remove the dependency array
|
|
PR:
src/components/SearchModal.tsx#L254
React Hook React.useEffect has missing dependencies: 'items' and 'refine'. Either include them or remove the dependency array
|
|
PR:
src/components/SearchModal.tsx#L184
React Hook React.useEffect has missing dependencies: 'items', 'refine', and 'subpathname'. Either include them or remove the dependency array
|
|
PR:
src/components/NpmStatsChart.tsx#L73
The ref value 'plotRef.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'plotRef.current' to a variable inside the effect, and use that variable in the cleanup function
|
|
PR:
src/components/FeedFilters.tsx#L157
React Hook React.useEffect has a missing dependency: 'onFiltersChange'. Either include it or remove the dependency array. If 'onFiltersChange' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
|
PR
React Hook useEffect has missing dependencies: 'consentSettings' and 'updateGTMConsent'. Either include them or remove the dependency array
|