You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
||||[react/state-in-constructor](docs/rules/state-in-constructor.md)| Enforce class component state initialization style |
347
347
||||[react/static-property-placement](docs/rules/static-property-placement.md)| Enforces where React component static properties should be positioned. |
348
348
||||[react/style-prop-object](docs/rules/style-prop-object.md)| Enforce style prop value is an object |
Copy file name to clipboardexpand all lines: docs/rules/sort-prop-types.md
+2
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
4
4
5
+
🔧 This rule is automatically fixable using the `--fix`[flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
6
+
5
7
Some developers prefer to sort prop type declarations alphabetically to be able to find necessary declaration easier at the later time. Others feel that it adds complexity and becomes burden to maintain.
0 commit comments