DEV Community

Seimei Matsusaki
Seimei Matsusaki

Posted on

About Eslint configuration (Airbnb style option for a Typescript project)

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:

Image description

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):

Image description

Curious to say, the "Airbnb" option appeared when I answered "No" to a question, "Does your project use Typescript?":

Image description

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:

Image description

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)