Skip to content

Commit a789eb0

Browse files
committed
[Fix] sort-prop-types Passed all test cases typo fixed
1 parent e2517c4 commit a789eb0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/rules/sort-prop-types.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
<!-- end auto-generated rule header -->
66

7+
🔧 This rule is automatically fixable using the `--fix` [flag](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) on the command line.
8+
79
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.
810

911
## Rule Details

lib/rules/sort-prop-types.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const report = require('../util/report');
1414
// ------------------------------------------------------------------------------
1515
// Rule Definition
1616
// ------------------------------------------------------------------------------
17-
17+
1818
const messages = {
1919
requiredPropsFirst: 'Required prop types must be listed before all other prop types',
2020
callbackPropsLast: 'Callback prop types must be listed after all other prop types',

0 commit comments

Comments
 (0)