Skip to content

Commit

Permalink
3.1.5: react/prefer-stateless-function: set true for ignorePureCompon…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
foray1010 committed Nov 30, 2016
1 parent 5c19b6b commit 6417aa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eslint-config-aftership",
"description": "AfterShip ESLint config (modified from Airbnb)",
"version": "3.1.4",
"version": "3.1.5",
"homepage": "https://github.com/AfterShip/eslint-config-aftership",
"author": {
"name": "AfterShip",
Expand Down
5 changes: 4 additions & 1 deletion react.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ module.exports = extendConfig({
'react/prefer-es6-class': 'off',

// we should aim to write stateless components, but we should not enforce now because it breaks a lot of code
'react/prefer-stateless-function': 'warn',
// ignorePureComponents because PureComponents helps improving performance and make the flow easier to understand
'react/prefer-stateless-function': ['warn', {
ignorePureComponents: true
}],

// Don't want to check default props
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md
Expand Down

0 comments on commit 6417aa2

Please sign in to comment.