Skip to content

Commit a9e0323

Browse files
committed
chore: Get impacts by axeCore constants
1 parent b47f493 commit a9e0323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let style = {}
55
let lastNotification = ''
66

77
const deferred = {}
8-
const impacts = ['critical', 'serious', 'moderate', 'minor']
8+
const impacts = [...axeCore.constants.impact].reverse()
99

1010
export function checkAndReport (options, node) {
1111
const deferred = createDeferred()

0 commit comments

Comments
 (0)