From b87cb5cdad74199d3fcb83d135e466c29a56ff4e Mon Sep 17 00:00:00 2001 From: Vlad Shcherbin Date: Mon, 1 May 2017 10:57:49 +0300 Subject: [PATCH] [guide] [Fix] react/prefer-stateless-function "ignorePureComponents" option typo --- packages/eslint-config-airbnb/rules/react.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-config-airbnb/rules/react.js b/packages/eslint-config-airbnb/rules/react.js index caf62dd8..63da3865 100644 --- a/packages/eslint-config-airbnb/rules/react.js +++ b/packages/eslint-config-airbnb/rules/react.js @@ -176,7 +176,7 @@ module.exports = { // Require stateless functions when not using lifecycle methods, setState or ref // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-stateless-function.md - 'react/prefer-stateless-function': ['error', { ignorePureComponent: true }], + 'react/prefer-stateless-function': ['error', { ignorePureComponents: true }], // Prevent missing props validation in a React component definition // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md