Skip to content

Commit e431f6f

Browse files
committed
Refactor code-style
1 parent f539dd2 commit e431f6f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/handle/thematic-break.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @typedef {import('../types.js').Handle} Handle
33
*/
44

5-
import {checkRuleRepeat} from '../util/check-rule-repeat.js'
5+
import {checkRuleRepetition} from '../util/check-rule-repetition.js'
66
import {checkRule} from '../util/check-rule.js'
77

88
/**
@@ -11,7 +11,7 @@ import {checkRule} from '../util/check-rule.js'
1111
export function thematicBreak(_, _1, context) {
1212
const value = (
1313
checkRule(context) + (context.options.ruleSpaces ? ' ' : '')
14-
).repeat(checkRuleRepeat(context))
14+
).repeat(checkRuleRepetition(context))
1515

1616
return context.options.ruleSpaces ? value.slice(0, -1) : value
1717
}

lib/util/check-rule-repeat.js renamed to lib/util/check-rule-repetition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @param {Context} context
88
* @returns {Exclude<Options['ruleRepetition'], undefined>}
99
*/
10-
export function checkRuleRepeat(context) {
10+
export function checkRuleRepetition(context) {
1111
const repetition = context.options.ruleRepetition || 3
1212

1313
if (repetition < 3) {

0 commit comments

Comments
 (0)