Skip to content

Commit

Permalink
Revert "general: allow unused _ variable"
Browse files Browse the repository at this point in the history
This reverts commit b8a14c2
  • Loading branch information
zbycz committed Nov 2, 2023
1 parent b8a14c2 commit 790c91f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,5 @@ 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; // eslint-disable-line @typescript-eslint/no-unused-vars
const { ph, ...days } = daysTable;
const timesByDay = Object.values(days).map((times, idx) => ({
times,
day: weekDays[idx],
Expand Down
3 changes: 2 additions & 1 deletion src/components/SearchBox/AutocompleteInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const useFocusOnSlash = () => {

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

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

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

0 comments on commit 790c91f

Please sign in to comment.