thinknimble / tn-spa-bootstrapper

A production-ready Django SPA app on Heroku in 20 minutes or less!
https://tn-spa-bootstrapper-staging.herokuapp.com/
MIT License
8 stars 9 forks source link

Clients - Mobile - Add better rules for RN eslint to prevent raw text in code #328

Closed lakardion closed 1 month ago

lakardion commented 1 month ago

What this does

Add a rule that errors whenever the linter finds strings not wrapped in <Text> component which causes crashes on runtime.

Note that here eslint-plugin-react-native was already installed but in the project I was working on this wasn't installed and it is a requirement for this lint rule to work:

npm install -D eslint-plugin-react-native

Checklist

How to test

Add user steps to achieve desired functionality for this feature.