Skip to content

Commit 01238e9

Browse files
author
Roy Sutton
committed
Disable --fix for sort-prop-types
1 parent 8093565 commit 01238e9

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

docs/rules/sort-prop-types.md

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
Some developers prefer to sort propTypes 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.
44

5-
**Fixable:** This rule is automatically fixable using the `--fix` flag on the command line.
6-
7-
85
## Rule Details
96

107
This rule checks all components and verifies that all propTypes declarations are sorted alphabetically. A spread attribute resets the verification. The default configuration of the rule is case-sensitive.

lib/rules/sort-prop-types.js

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ module.exports = {
2323
url: docsUrl('sort-prop-types')
2424
},
2525

26-
fixable: 'code',
27-
2826
schema: [{
2927
type: 'object',
3028
properties: {

0 commit comments

Comments
 (0)