source: frontend/node_modules/fork-ts-checker-webpack-plugin/lib/issue/IssueSeverity.js

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";
2Object.defineProperty(exports, "__esModule", { value: true });
3function isIssueSeverity(value) {
4 return ['error', 'warning'].includes(value);
5}
6exports.isIssueSeverity = isIssueSeverity;
7function compareIssueSeverities(severityA, severityB) {
8 const [priorityA, priorityB] = [severityA, severityB].map((severity) => ['warning' /* 0 */, 'error' /* 1 */].indexOf(severity));
9 return Math.sign(priorityB - priorityA);
10}
11exports.compareIssueSeverities = compareIssueSeverities;
Note: See TracBrowser for help on using the repository browser.