allow console.error in eslint

main
Mike Fix 6 years ago
parent b152d1d1c0
commit 9621e4b64a

@ -24,7 +24,8 @@ module.exports = {
'react/jsx-uses-vars': 'error',
'jsx-a11y/click-events-have-key-events': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error'
'react-hooks/exhaustive-deps': 'error',
'no-console': ['error', { allow: ['error'] }]
},
settings: {
react: {

@ -71,9 +71,8 @@ async function getGist(uid) {
}
}
})
} catch (error) {
// eslint-disable-next-line
console.log(e)
} catch (e) {
console.error(e)
return null
}
}

Loading…
Cancel
Save