Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Commit

Permalink
Disable react/static-property-placement
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsuharuohzeki committed May 7, 2019
1 parent 390313b commit a785af0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/eslintrc_react.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ module.exports = {
// A _state_ usually depends on some value hold by its instance.
// So it's more reasonable way to init in the constructor.
'react/state-in-constructor': ['error', 'always'],
// I seem this might be a problematic only for class component,
// But we lives in the era of hooks and almost properties which is targeted by this rule
// are classic (non-recommended in today) ones.
'react/static-property-placement': 'off',
'react/void-dom-elements-no-children': 1,

// We define customized rules because we thought default settings mixes with
Expand Down

0 comments on commit a785af0

Please sign in to comment.