Skip to content

Commit

Permalink
refactor(tools): update tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmartineau committed Apr 1, 2024
1 parent d77079d commit eec6edb
Show file tree
Hide file tree
Showing 11 changed files with 383 additions and 712 deletions.
5 changes: 5 additions & 0 deletions client/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@
},
"env": {
"browser": true
},
"settings": {
"react": {
"version": "detect"
}
}
}
2 changes: 1 addition & 1 deletion client/components/Autocomplete/AutoComplete.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import Autosuggest from 'react-autosuggest';
import { utils } from '~/config';
import fuzzy from 'fuzzy';
import fuzzy, { FilterOptions } from 'fuzzy';
import styled from 'styled-components';
import debounce from 'lodash/debounce';
import { TextField } from '~/client/components/Toolkit';
Expand Down
2 changes: 1 addition & 1 deletion client/components/Layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import styled from 'styled-components';
import { withRouter } from 'next/router';
import { WithRouterProps } from 'next/dist/client/with-router';

type RouteType = { label: string; href: string; icon: JSX.Element };
type RouteType = { label: string; href: string; icon: React.ReactElement };

const routes: RouteType[] = [
{
Expand Down
4 changes: 3 additions & 1 deletion client/components/Search/FilteredWine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ const WineCardStyled = styled(WineCard)`
justify-self: center;
`;

type Props = { children: (wine: WineEnhanced) => JSX.Element } & PropsFromRedux;
type Props = {
children: (wine: WineEnhanced) => React.ReactElement;
} & PropsFromRedux;

class FilteredWine extends React.Component<Props> {
state = {
Expand Down
Loading

0 comments on commit eec6edb

Please sign in to comment.