All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
16 lines
327 B
JavaScript
16 lines
327 B
JavaScript
module.exports = checkRule
|
|
|
|
function checkRule(context) {
|
|
var repetition = context.options.ruleRepetition || 3
|
|
|
|
if (repetition < 3) {
|
|
throw new Error(
|
|
'Cannot serialize rules with repetition `' +
|
|
repetition +
|
|
'` for `options.ruleRepetition`, expected `3` or more'
|
|
)
|
|
}
|
|
|
|
return repetition
|
|
}
|