Skip to content

Commit

Permalink
Fix order of jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
duhamelgm committed Feb 7, 2022
1 parent 4480936 commit 85a55f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/jsx-sort-props.js
Expand Up @@ -233,6 +233,7 @@ function validateReservedFirstConfig(context, reservedFirst) {
}
}

const reportedNodeAttributes = new WeakMap();
/**
* Check if the current node attribute has already been reported with the same error type
* if that's the case then we don't report a new error
Expand All @@ -243,7 +244,6 @@ function validateReservedFirstConfig(context, reservedFirst) {
* @param {Object} context The context of the rule
* @param {Array<String>} reservedList The list of reserved props
*/
const reportedNodeAttributes = new WeakMap();
function reportNodeAttribute(nodeAttribute, errorType, node, context, reservedList) {
const errors = reportedNodeAttributes.get(nodeAttribute) || [];

Expand Down

0 comments on commit 85a55f0

Please sign in to comment.