Skip to content

Commit 09a2943

Browse files
committed
Fix lint in validatorMapper
1 parent c631624 commit 09a2943

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/react-form-renderer/src/validators/validator-mapper.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ export default {
88
[validatorTypes.MIN_LENGTH]: ({ threshold, ...rest }) => length({ minimum: threshold, ...rest }),
99
[validatorTypes.MAX_LENGTH]: ({ threshold, ...rest }) => length({ maximum: threshold, ...rest }),
1010
[validatorTypes.EXACT_LENGTH]: ({ threshold, ...rest }) => length({ is: threshold, ...rest }),
11-
[validatorTypes.MIN_ITEMS]: ({ threshold, ...rest }) =>
12-
length({ minimum: threshold, message: `Must have at least ${threshold} items.`, ...rest }),
11+
[validatorTypes.MIN_ITEMS]: ({ threshold, ...rest }) => length({ minimum: threshold, message: `Must have at least ${threshold} items.`, ...rest }),
1312
[validatorTypes.PATTERN]: pattern,
1413
[validatorTypes.MAX_NUMBER_VALUE]: ({ value, includeThreshold = true, ...rest }) =>
1514
numericality({ [includeThreshold ? '<=' : '<']: value, ...rest }),

0 commit comments

Comments
 (0)