You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
rotkiw
changed the title
bug: lodash/prefer-lodash-method false positive with react router replace
bug: lodash/prefer-lodash-method false positive with nextjs (react) router replace
Mar 19, 2021
`import { useRouter } from 'next/router'
const router = useRouter()
router.replace('/')`
with plugin:lodash/recommended:
ESLint: Prefer '_.replace' over the native function. (lodash/prefer-lodash-method)
quick fix rule:
'lodash/prefer-lodash-method': [2, { ignoreMethods: ['replace'] }]
The text was updated successfully, but these errors were encountered: