creating reusable components #164
Annotations
4 errors and 10 warnings
|
Run Lint
Process completed with exit code 1.
|
|
Run Lint
Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs to an interactive content element
|
|
Run Lint
Visible, non-interactive elements with click handlers must have at least one keyboard listener
|
|
Run Lint:
src/components/game/machines/GameMachineProvider.tsx#L47
'ProgressionContext' is already defined
|
|
Run Lint:
src/components/charts/TimeSeriesChart.tsx#L3
'd3' is defined but never used. Allowed unused vars must match /(^_)|(^__+$)|(^e$)|(^error$)/u
|
|
Run Lint:
src/components/ThemeProvider.tsx#L9
'resolvedThemeSchema' is assigned a value but only used as a type. Allowed unused vars must match /(^_)|(^__+$)|(^e$)|(^error$)/u
|
|
Run Lint:
src/components/ShowcaseSection.tsx#L76
The 'showcases' logical expression could make the dependencies of useMemo Hook (at line 81) change on every render. To fix this, wrap the initialization of 'showcases' in its own useMemo() Hook
|
|
Run Lint:
src/components/SearchModal.tsx#L911
'libraryItems' is assigned a value but never used. Allowed unused vars must match /(^_)|(^__+$)|(^e$)|(^error$)/u
|
|
Run Lint:
src/components/SearchModal.tsx#L756
'submitIconComponent' is assigned a value but never used. Allowed unused vars must match /(^_)|(^__+$)|(^e$)|(^error$)/u
|
|
Run Lint:
src/components/RolesTopBarFilters.tsx#L2
'Capability' is defined but never used. Allowed unused vars must match /(^_)|(^__+$)|(^e$)|(^error$)/u
|
|
Run Lint:
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
|
|
Run Lint:
src/components/Navbar.tsx#L46
'hasCapability' is defined but never used. Allowed unused vars must match /(^_)|(^__+$)|(^e$)|(^error$)/u
|
|
Run Lint:
src/components/FeedPage.tsx#L58
'savedFilters' is assigned a value but never used. Allowed unused vars must match /(^_)|(^__+$)|(^e$)|(^error$)/u
|
|
Run Lint:
src/components/DocsLayout.tsx#L258
'getFrameworkTextColor' is assigned a value but never used. Allowed unused vars must match /(^_)|(^__+$)|(^e$)|(^error$)/u
|
Loading