|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
498 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 | Object.defineProperty(exports, "__esModule", { value: true });
|
|---|
| 3 | function isIssueSeverity(value) {
|
|---|
| 4 | return ['error', 'warning'].includes(value);
|
|---|
| 5 | }
|
|---|
| 6 | exports.isIssueSeverity = isIssueSeverity;
|
|---|
| 7 | function compareIssueSeverities(severityA, severityB) {
|
|---|
| 8 | const [priorityA, priorityB] = [severityA, severityB].map((severity) => ['warning' /* 0 */, 'error' /* 1 */].indexOf(severity));
|
|---|
| 9 | return Math.sign(priorityB - priorityA);
|
|---|
| 10 | }
|
|---|
| 11 | exports.compareIssueSeverities = compareIssueSeverities;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.