Skip to content

Commit 9415814

Browse files
committed
Add react/state-in-constructor to the list of rule in readme
1 parent acc35a1 commit 9415814

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ Enable the rules that you would like to use.
133133
* [react/self-closing-comp](docs/rules/self-closing-comp.md): Prevent extra closing tags for components without children (fixable)
134134
* [react/sort-comp](docs/rules/sort-comp.md): Enforce component methods order (fixable)
135135
* [react/sort-prop-types](docs/rules/sort-prop-types.md): Enforce propTypes declarations alphabetical sorting
136+
* [react/state-in-constructor](docs/rules/state-in-constructor.md): Enforce the state initialization style to be either in a constructor or with a class property
136137
* [react/style-prop-object](docs/rules/style-prop-object.md): Enforce style prop value being an object
137138
* [react/void-dom-elements-no-children](docs/rules/void-dom-elements-no-children.md): Prevent void DOM elements (e.g. `<img />`, `<br />`) from receiving children
138139

0 commit comments

Comments
 (0)