This is a good moment to think again about our
prettier configuration so it is as simple as possible.
We were following
eslint-airbnb in the past, but I’d like our configuration to be as simple and as standard as possible.
In the past, when
prettier didn’t exist,
eslint did a lot of syntax work. Nowadays much of the work is done by
prettier, so I guess
eslint is less important for syntax. It is still useful to catch errors (no undefined variables and stuff like that).
What happens if we keep only
"extends": [ "eslint:recommended", "plugin:jest/recommended" ],
I’d like to start as simple as possible, then make things more complex only if we find there’s no other way.
I’m thinking we could use prettier with the default config (no config file). Yes, I know, that means no trailing comma, no semis and double quotes
The main advantage I see is that if people don’t have
prettier well configured, it still works. It also means they don’t need a file in their packages and it also means that it’s the same
prettier config you get in codesandbox by default.