-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues and my issue is uniqueMy issue appears in the command-line and not only in the text editorTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Description Overview
Starting code:
type Props = {
onClose: () => void;
onSave?: () => void;
initialContractInfo?: ContractInfo; // used to pre-populate the form just for our tests
contractVersionTraceId?: TraceId; // used when editing an existing contract
contractContainerId: TraceId;
wizardStartIndex?: number;
contractStatus?: BackendContractStatus;
contractVersion?: BackendContractVersion;
};
Auto-fixed code:
type Props = {
initialContractInfo?: ContractInfo; // used to pre-populate the form just for our tests
// used to pre-populate the form just for our tests
contractVersionTraceId?: TraceId; // used when editing an existing contract
// used when editing an existing contract
contractContainerId: TraceId;
dContractVersion;
onClose: () => void;
onSave?: () => void;
};
Component
function ContractVersionWizard(props: Props) {
return <div />;
}
Relevant rule config:
"react/sort-prop-types": [
"error",
{
"callbacksLast": true,
"requiredFirst": true,
"sortShapeProp": true,
"noSortAlphabetically": true,
"checkTypes": true
}
]
As discussed in #3783
Expected Behavior
Expected result:
type Props = {
initialContractInfo?: ContractInfo; // used to pre-populate the form just for our tests
contractVersionTraceId?: TraceId; // used when editing an existing contract
contractContainerId: TraceId;
wizardStartIndex?: number;
contractStatus?: BackendContractStatus;
contractVersion?: BackendContractVersion;
onClose: () => void;
onSave?: () => void;
};
### eslint-plugin-react version
v7.34.4
### eslint version
v8.57.0
### node version
v20.14.10
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
[-][Bug]: autofix for `useJsxKeyInIterable` breaks code containing comments[/-][+][Bug]: autofix for `sort-prop-types` breaks code containing comments[/+]