From 9c5f0709c126b0c113f7b8bd32ca1ac758960031 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sat, 6 Jul 2019 13:31:47 +0700 Subject: [PATCH] Add option to the `react/boolean-prop-naming` rule https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/boolean-prop-naming.md#validatenested --- index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 605ddb3..3fcf027 100644 --- a/index.js +++ b/index.js @@ -15,7 +15,12 @@ module.exports = { } }, rules: { - 'react/boolean-prop-naming': 'error', + 'react/boolean-prop-naming': [ + 'error', + { + validateNested: true + } + ], 'react/button-has-type': 'error', 'react/jsx-child-element-spacing': 'error', 'react/default-props-match-prop-types': 'error',