Questions tagged [eslint-config-airbnb]

Use this tag for the NPM package that provides Airbnb's .eslintrc as an extensible shared config

Relevant links

https://www.npmjs.com/package/eslint-config-airbnb

https://github.com/airbnb/javascript

https://eslint.org/docs/rules/

288 questions
-1
votes
3 answers

Which is the best approach to handle nested conditional rendering?

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:
{ index === 0 ?
-1
votes
1 answer

Disable eslint for previous commits

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.
db07
  • 107
  • 1
  • 6
-1
votes
1 answer

Use/advantage of Array Destructing?

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 =…
AnandShiva
  • 906
  • 11
  • 22
1 2 3
19
20