Skip to content

Commit

Permalink
general: allow unused _ variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zbycz committed Nov 2, 2023
1 parent ba366bf commit b8a14c2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,13 @@ module.exports = {
'react/require-default-props': OFF,
'no-nested-ternary': OFF,
'no-irregular-whitespace': OFF,
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const formatDescription = (isOpen: boolean, days: SimpleOpeningHoursTable) => {
const OpeningHoursRenderer = ({ v }) => {
const [isExpanded, toggle] = useToggleState(false);
const { daysTable, isOpen } = parseOpeningHours(v);
const { ph, ...days } = daysTable;
const { ph, ...days } = daysTable; // eslint-disable-line @typescript-eslint/no-unused-vars
const timesByDay = Object.values(days).map((times, idx) => ({
times,
day: weekDays[idx],
Expand Down
3 changes: 1 addition & 2 deletions src/components/SearchBox/AutocompleteInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const useFocusOnSlash = () => {

const SearchBoxInput = ({ params, setInputValue, autocompleteRef }) => {
const inputRef = useFocusOnSlash();
const { InputLabelProps, InputProps, ...restParams } = params;

useEffect(() => {
// @ts-ignore
Expand All @@ -43,7 +42,7 @@ const SearchBoxInput = ({ params, setInputValue, autocompleteRef }) => {

return (
<InputBase
{...restParams} // eslint-disable-line react/jsx-props-no-spreading
{...params} // eslint-disable-line react/jsx-props-no-spreading
inputRef={inputRef}
placeholder={t('searchbox.placeholder')}
onChange={onChange}
Expand Down
1 change: 0 additions & 1 deletion src/services/osmApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ const osmToFeature = (element): Feature => {
tags = {},
lat,
lon,
nodes,
members,
osmappDeletedMarker,
...osmMeta
Expand Down

1 comment on commit b8a14c2

@vercel
Copy link

@vercel vercel bot commented on b8a14c2 Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

osmapp – ./

osmapp.vercel.app
osmapp-git-master-zbycz.vercel.app
osmapp-zbycz.vercel.app
osmapp.org

Please sign in to comment.