DEV Community

Discussion on: Import and export declarations are not supported yet (in TS)

Collapse
 
michalbryxi profile image
Michal Bryxí

Hi Sergei unicorn is popular eslint plugin that adds some extra formatting rules. You don't need it at all. I attached the full config only because I think setting up all the extends / plugins is very confusing and this should give the reader ability to have copy&paste solution. If you know what you're doing, adding the extra rules option is a way to go.

Collapse
 
verberden profile image
Sergei Novikov

Michal thanks! I google it but wasn't sure. Actually i'm starting to use airbnb's rules in my project and have never heard about unicorn before. And I'm wondering if anyone has compared them?

Thread Thread
 
michalbryxi profile image
Michal Bryxí

Not sure tbh. Quick look at the Airbnb one it seems that:

  • It requires more involvement (have to use additional packages)
  • They have some rules that do care about old browsers
  • Are the rules auto-fixable? Maybe another article would be good for that.