Skip to content

Commit dfdaa89

Browse files
committed
Fixed prettier check failing
1 parent cf9bdf2 commit dfdaa89

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

build/tasks/validate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,13 @@ function createSchemas() {
229229
type: 'string'
230230
},
231231
violationConfidence: {
232-
type: 'number',
232+
type: 'number'
233233
},
234234
needsReviewConfidence: {
235-
type: 'number',
235+
type: 'number'
236236
},
237237
defaultCategory: {
238-
type: 'string',
238+
type: 'string'
239239
}
240240
}
241241
}

lib/checks/aria/aria-prohibited-attr-evaluate.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ export default function ariaProhibitedAttrEvaluate(
6060
let messageKey = role !== null ? 'hasRole' : 'noRole';
6161
messageKey += prohibited.length > 1 ? 'Plural' : 'Singular';
6262
// a11y-rule-aria-prohibited-attr: reviewPayload for bulk NR
63-
const accessibleName =
64-
axe.commons.text.accessibleText(node)
63+
const accessibleName = axe.commons.text.accessibleText(node);
6564
this.data({
6665
role,
6766
nodeName,

lib/checks/color/color-contrast-evaluate.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ export default function colorContrastEvaluate(node, options, virtualNode) {
155155
fgColor: fgColor ? fgColor.toHexString() : null,
156156
bgColor: bgColor ? bgColor.toHexString() : null,
157157
isLargeText: !isSmallFont,
158-
textContent: visibleText ? (visibleText.length <= 100 ? visibleText : visibleText.slice(0, visibleText.lastIndexOf(' ', 100) || 100)) : null
158+
textContent: visibleText
159+
? visibleText.length <= 100
160+
? visibleText
161+
: visibleText.slice(0, visibleText.lastIndexOf(' ', 100) || 100)
162+
: null
159163
}
160164
}
161165
});

0 commit comments

Comments
 (0)