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:
parent
8e393b16f5
commit
4cc57f4bfd
6 changed files with 579 additions and 0 deletions
7
eslint/index.js
Normal file
7
eslint/index.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
module.exports = {
|
||||
rules: {
|
||||
'avoid-unwrapped-text': require('./avoid-unwrapped-text'),
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue