@a11ywatch/core
Version: 
a11ywatch central API
14 lines • 372 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.issueSort = void 0;
const issueSort = (a, b) => {
    if (a.type === "error" && b.type !== "error") {
        return -1;
    }
    if (a.type === "warning" && b.type !== "error") {
        return -2;
    }
    return 0;
};
exports.issueSort = issueSort;
//# sourceMappingURL=issue.js.map