Since my team recently has decided to introduce Eslint (Typescript + Airbnb style), I was researching how to set up yesterday.
When I read some articles about the configuration, some of the authors directed to choose the Airbnb option during initialization with an image like below:
However, I found that the "Airbnb" option didn't appear when I was initializing the configuration. Only "Standard" and "XO" are available on the latest version (8.23.0):
Curious to say, the "Airbnb" option appeared when I answered "No" to a question, "Does your project use Typescript?":
So, what was wrong? This took me a while to figure out why.
After I did some research on the cause, I realized that the version of my Eslint was the cause. In short, the "Airbnb" and "Google" style options are gone from 8.7.0 for some reason; meanwhile 8.6.0 or before, these were okay:
As you can see, even if I select "Yes" to Typescript, the options are selectable. Nice.
But, I'm still in the middle of the configuration, so there is no guarantee that this is the correct way to go, but I just wanted to share this finding.
Top comments (0)