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 marker = context.options.rule || '*'
|
|
|
|
if (marker !== '*' && marker !== '-' && marker !== '_') {
|
|
throw new Error(
|
|
'Cannot serialize rules with `' +
|
|
marker +
|
|
'` for `options.rule`, expected `*`, `-`, or `_`'
|
|
)
|
|
}
|
|
|
|
return marker
|
|
}
|