Skip to content

Commit 447bc87

Browse files
committed
Prettier-ignore long error strings
1 parent 538a854 commit 447bc87

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/lib/substituteClassApplyAtRules.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,21 @@ function findMixin(css, mixin, onError) {
1414
css.walkRules(rule => {
1515
if (rule.selectors.includes(mixin)) {
1616
if (rule.parent.type !== 'root') {
17-
onError(
18-
`\`@apply\` cannot be used with ${mixin} because ${mixin} is nested inside of an at-rule (@${rule.parent.name}).`
19-
)
17+
// prettier-ignore
18+
onError(`\`@apply\` cannot be used with ${mixin} because ${mixin} is nested inside of an at-rule (@${rule.parent.name}).`)
2019
}
2120

2221
matches.push(rule)
2322
}
2423
})
2524

2625
if (_.isEmpty(matches)) {
26+
// prettier-ignore
2727
onError(`\`@apply\` cannot be used with ${mixin} because ${mixin} either does not exist, or it's actual definition includes a pseudo-class like :hover, :active, etc.`)
2828
}
2929

3030
if (matches.length > 1) {
31+
// prettier-ignore
3132
onError(`\`@apply\` cannot be used with ${mixin} because ${mixin} is included in multiple rulesets.`)
3233
}
3334

0 commit comments

Comments
 (0)