Lint against strings without wrapping <Text> (#3398)

* Add a rudimentary rule

* Get the rule passing

* Support special-casing text props

* More tests
This commit is contained in:
dan 2024-04-04 17:32:50 +01:00 committed by GitHub
parent 8e393b16f5
commit 4cc57f4bfd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 579 additions and 0 deletions

7
eslint/index.js Normal file
View file

@ -0,0 +1,7 @@
'use strict'
module.exports = {
rules: {
'avoid-unwrapped-text': require('./avoid-unwrapped-text'),
},
}