diff --git a/.eslintrc b/.eslintrc index 3b868ffb..3914cc92 100644 --- a/.eslintrc +++ b/.eslintrc @@ -154,6 +154,8 @@ { "newlines-between": "always" } - ] + ], + // For readability purposes it can be useful if not abused + "@typescript-eslint/no-shadow": "off" } } diff --git a/src/hooks/use-toggle.ts b/src/hooks/use-toggle.ts index 5b6d8b9a..023dddde 100644 --- a/src/hooks/use-toggle.ts +++ b/src/hooks/use-toggle.ts @@ -2,7 +2,6 @@ import { useCallback, useState } from 'react' const useToggle = ( initialState = false ) => { const [ state, setState ] = useState( initialState ) - // eslint-disable-next-line @typescript-eslint/no-shadow const toggle = useCallback( () => setState( ( state ) => !state ), [] ) return { state, toggle } }