DEV Community

highasthedn
highasthedn

Posted on

Is the Airbnb ESLint config still a thing for React?

Hi fellow React developers!
When I started using React in a project back in 2016 I worked with some developers who said the Airbnb ESLint config is the thing you need to write good code in React.
Honestly I never questioned this good old configuration and used it in almost every project so far.
Meanwhile I'm using the eslint-config-airbnb-typescript-prettier package, so I got Prettier and TypeScript covered.

Some weeks ago I talked to a developer who frowned and said there are far better configurations.

So what do you guys think? Which configurations do you use? Or do you have your own?

Top comments (7)

Collapse
 
arvigeus profile image
Nikolay Stoynov

Airbnb’s config makes sense only if you are a giant company with established practices and you want to enforce them for everyone. For building things from scratch this is unnecessary waste of time to fight eslint.
I created my own config, but never had a proper chance to use it because both NextJs and Remix have their own configs. There is a trend to migrate away from forcing you to make a choice about configs and just provide you with sane defaults - Deno, Rome

Collapse
 
highasthedn profile image
highasthedn

Interesting, this is exactly the reversed trend as before. Sometimes it looked like everything has to be configured to the smallest detail. You are right, sometimes it felt as the meaning of life to make ESLint happy 😄

Collapse
 
lamhungypl profile image
lamhungypl • Edited

I have to modify many rules in AirBnB, so get started with NextJS's config will be easier.

Collapse
 
highasthedn profile image
highasthedn

I also have some rules reconfigured, I will have a look at the NextJS config

Collapse
 
mistval profile image
Randall

I like to use AirBnB with a few overrides. Of course, there is no best configuration, it's just a matter of opinion.

Collapse
 
highasthedn profile image
highasthedn

Yes I also got used to it over the years

Collapse
 
hamodey85 profile image
Mohammed Almajid

I am also looking for better config
used to use airbnb
but i think he is right, there is better config than airbnb

if you have one share it will us please