From 4cc57f4bfdf16fd627ad63bf20ff8193e7d0a12a Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 4 Apr 2024 17:32:50 +0100 Subject: Lint against strings without wrapping (#3398) * Add a rudimentary rule * Get the rule passing * Support special-casing text props * More tests --- eslint/index.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 eslint/index.js (limited to 'eslint/index.js') 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'), + }, +} -- cgit 1.4.1