From e806d65274d9933d328a3d1addd617434e535326 Mon Sep 17 00:00:00 2001 From: Thibaut Boustany Date: Thu, 14 Jun 2018 14:57:15 +0200 Subject: [PATCH] `react/jsx-no-literals` eslint rule added --- .eslintrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.eslintrc b/.eslintrc index d30945b6..b3fcd35b 100644 --- a/.eslintrc +++ b/.eslintrc @@ -54,6 +54,7 @@ "react/jsx-curly-brace-presence": 0, "react/jsx-filename-extension": 0, "react/jsx-no-target-blank": 0, + "react/jsx-no-literals": [1, {"noStrings": true}], "react/prefer-stateless-function": 0, "react/require-default-props": 0, "react/sort-comp": [1, { @@ -73,4 +74,10 @@ "onlyFilesWithFlowAnnotation": true, } }, + "overrides": [{ + "files": [ "*stories.js" ], + "rules": { + "react/jsx-no-literals": 0 + } + }] }