From 8b3a5e92fa29a79ddcec8c65023b3bf23de3181b Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sat, 6 Jul 2019 13:43:57 +0700 Subject: [PATCH] Add option to the `react/no-string-refs` rule https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-string-refs.md#notemplateliterals --- index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 2caa090..d042b1d 100644 --- a/index.js +++ b/index.js @@ -37,7 +37,12 @@ module.exports = { 'react/no-redundant-should-component-update': 'error', 'react/no-render-return-value': 'error', 'react/no-typos': 'error', - 'react/no-string-refs': 'error', + 'react/no-string-refs': [ + 'error', + { + noTemplateLiterals: true + } + ], 'react/no-this-in-sfc': 'error', 'react/no-unescaped-entities': 'error', 'react/no-unknown-property': 'error',