about summary refs log tree commit diff
path: root/eslint/index.js
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-04-04 17:32:50 +0100
committerGitHub <noreply@github.com>2024-04-04 17:32:50 +0100
commit4cc57f4bfdf16fd627ad63bf20ff8193e7d0a12a (patch)
treecdb25d309e141296e8df680bc4a8fda2105912a1 /eslint/index.js
parent8e393b16f502ca201393d1fd585c870fee8a4fe9 (diff)
downloadvoidsky-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.js7
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'),
+  },
+}