Autoformatter Config #18
Annotations
1 error and 11 warnings
lint
Process completed with exit code 1.
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint:
components/Avatar.tsx#L30
img elements must have an alt prop, either with meaningful text, or an empty string for decorative images
|
lint:
components/Container.tsx#L122
React Hook useEffect has a missing dependency: 'selectedTeam'. Either include it or remove the dependency array
|
lint:
components/Footer.tsx#L48
img elements must have an alt prop, either with meaningful text, or an empty string for decorative images
|
lint:
components/UpdateModal.tsx#L40
img elements must have an alt prop, either with meaningful text, or an empty string for decorative images
|
lint:
components/forms/FieldPositionSelector.tsx#L28
React Hook useEffect has a missing dependency: 'props'. Either include it or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect
|
lint:
components/forms/Form.tsx#L73
React Hook useCallback has a missing dependency: 'sync'. Either include it or remove the dependency array
|
lint:
components/forms/Form.tsx#L85
React Hook useCallback has missing dependencies: 'formData' and 'setCallback'. Either include them or remove the dependency array. You can also do a functional update 'setFormData(f => ...)' if you only need 'formData' in the 'setFormData' call
|
lint:
components/forms/ImageUpload.tsx#L67
img elements must have an alt prop, either with meaningful text, or an empty string for decorative images
|
lint:
components/stats/Picklist.tsx#L224
React Hook useEffect contains a call to 'setLoadingPicklists'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [loadingPicklists, LoadState.NotLoaded, LoadState.Loading, LoadState.Loaded, props, loadDbPicklist] as a second argument to the useEffect Hook
|
lint:
components/stats/SmallGraph.tsx#L111
React Hook useEffect has missing dependencies: 'currentTeam', 'datapoints', 'props.selectedReports', and 'props.team'. Either include them or remove the dependency array. If 'setCurrentTeam' needs the current value of 'props.team', you can also switch to useReducer instead of useState and read 'props.team' in the reducer
|