mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-13 13:48:12 -05:00
[guide] [Fix] react/prefer-stateless-function "ignorePureComponents" option typo
This commit is contained in:
committed by
Jordan Harband
parent
275d4bba98
commit
b87cb5cdad
2
packages/eslint-config-airbnb/rules/react.js
vendored
2
packages/eslint-config-airbnb/rules/react.js
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user