I recently installed eslint-config-airbnb and decided to review a project by using their style guide. Since it is not advised to nest ternary operators I found myself converting the following block:
I am new to eslint and prettier. I am trying to set these up and wondering if there is a way to disable eslint and prettier for previous commits in the repo and run it only on the new code or new checkins? Thanks in advance for the help.
I have recently moved to 'airbnb-base' eslint style-guide. There i am get an error when i try to reference the array elements with index eslint(prefer-destructuring).
eg
let a = {};
// get an error saying eslint(prefer-destructuring)
a.b =…