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', 'react/jsx-uses-vars': 'error',
'jsx-a11y/click-events-have-key-events': 'off', 'jsx-a11y/click-events-have-key-events': 'off',
'react-hooks/rules-of-hooks': 'error', 'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error' 'react-hooks/exhaustive-deps': 'error',
'no-console': ['error', { allow: ['error'] }]
}, },
settings: { settings: {
react: { react: {

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

Loading…
Cancel
Save