Skip to content

Commit bc5f707

Browse files
committed
react: disable prefer-stateless-function
1 parent 7987114 commit bc5f707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module.exports = {
5757
'react/no-unused-prop-types': 1, // Prevent definitions of unused prop types
5858
'react/no-will-update-set-state': 2, // Prevent usage of `setState` in `componentWillUpdate`
5959
'react/prefer-es6-class': 1, // Enforce ES5 or ES6 class for React Components
60-
'react/prefer-stateless-function': 1, // Enforce stateless React Components to be written as a pure function
60+
'react/prefer-stateless-function': 0, // Enforce stateless React Components to be written as a pure function
6161
'react/prop-types': 0, // Prevent missing props validation in a React component definition
6262
'react/react-in-jsx-scope': 1, // Prevent missing React when using JSX,
6363
'react/require-default-props': 0, // Enforce a defaultProps definition for every prop that is not a required prop

0 commit comments

Comments
 (0)