Skip to content

Commit

Permalink
revert client package linting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWeissDev authored and 4upz committed May 24, 2024
1 parent 8dc1d9f commit 1415423
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Pagination: <T>(
) => ReactElement = ({ data, pageSize, handlePage }) => {
const { paginationContainer, paginationLabel } = useStyles()
const [page, setPage] = useState(0)
const { paginatedData, totalPages } = usePaginateData<(typeof data)[0]>(
const { paginatedData, totalPages } = usePaginateData<typeof data[0]>(

Check failure on line 56 in packages/client/src/pages/EmissionsMetricsPage/EmissionsBreakdownCard/Pagination/Pagination.tsx

View workflow job for this annotation

GitHub Actions / Install 18.x

Replace `typeof·data` with `(typeof·data)`

Check failure on line 56 in packages/client/src/pages/EmissionsMetricsPage/EmissionsBreakdownCard/Pagination/Pagination.tsx

View workflow job for this annotation

GitHub Actions / Install 20.x

Replace `typeof·data` with `(typeof·data)`
data,
pageSize,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ export const ForecastError = {
MISSING_DAYS: 'DAYS',
} as const

export type ForecastErrorType =
(typeof ForecastError)[keyof typeof ForecastError]
export type ForecastErrorType = typeof ForecastError[keyof typeof ForecastError]

Check failure on line 47 in packages/client/src/pages/RecommendationsPage/RecommendationsTable/Forecast/Forecast.tsx

View workflow job for this annotation

GitHub Actions / Install 18.x

Replace `·typeof·ForecastError` with `⏎··(typeof·ForecastError)`

Check failure on line 47 in packages/client/src/pages/RecommendationsPage/RecommendationsTable/Forecast/Forecast.tsx

View workflow job for this annotation

GitHub Actions / Install 20.x

Replace `·typeof·ForecastError` with `⏎··(typeof·ForecastError)`

const Forecast: FunctionComponent<ForecastProps> = ({
emissionsData,
Expand Down

0 comments on commit 1415423

Please sign in to comment.