I have a question about a standard eslint and camel case. I have a redundant error on this type of code.
const response = yield call(currentAccount, localStorage.getItem('auth_token'))
console.log(`RESPONSE ${JSON.stringify(response)}`)
if (response) {
const { id, email, first_name, last_name, name } = response
yield put({
type: 'user/SET_STATE',
payload: {
id,
name,
email,
authorized: true,
lastname: last_name,
firstname: fist_name
},
})
}
Line 53: Identifier 'first_name' is not in camel case camelcase
How can I fix this error without disabling esLint on this type of formatting ?
Thanks a lot