diff options
author | dan <dan.abramov@gmail.com> | 2024-04-04 17:32:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 17:32:50 +0100 |
commit | 4cc57f4bfdf16fd627ad63bf20ff8193e7d0a12a (patch) | |
tree | cdb25d309e141296e8df680bc4a8fda2105912a1 /eslint/index.js | |
parent | 8e393b16f502ca201393d1fd585c870fee8a4fe9 (diff) | |
download | voidsky-4cc57f4bfdf16fd627ad63bf20ff8193e7d0a12a.tar.zst |
Lint against strings without wrapping <Text> (#3398)
* Add a rudimentary rule * Get the rule passing * Support special-casing text props * More tests
Diffstat (limited to 'eslint/index.js')
-rw-r--r-- | eslint/index.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/eslint/index.js b/eslint/index.js new file mode 100644 index 000000000..daf5bd81d --- /dev/null +++ b/eslint/index.js @@ -0,0 +1,7 @@ +'use strict' + +module.exports = { + rules: { + 'avoid-unwrapped-text': require('./avoid-unwrapped-text'), + }, +} |