My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Airbnb Styleguide for React-Native Typescript

Nino's photo
Nino
·Jan 26, 2019

We are currently creating default projects for our next jobs and wanted to use some new tech. And because our team is coming from an OOP background, we like the idea of TypeScript!

So we inizialized a new react-native-typescript project. But sometimes we have to hire additional developers for stressed out situations. For this case we added esLint in the past to our tool-set, because it makes a lot of sence for us. If new programmers joins the team the linter will tell them what is possible and what not. Our go to StyleGuide was Airbnb-Javascript and Airbnb-React. But with TypeScript now, we have no solution for forcing this styleguide.

We tried tslint-config-airbnb but this has no react support. Also we tried @typescritp-eslint and installed the parser, added airbnb as "extension" to the .eslintrc.json file, but it linted once again only .js files and not .tsx files.

I would like to know how others solved this problem?