source: frontend/node_modules/fork-ts-checker-webpack-plugin/lib/issue/IssuePosition.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: 448 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3function compareIssuePositions(positionA, positionB) {
4 if (positionA === positionB) {
5 return 0;
6 }
7 if (!positionA) {
8 return -1;
9 }
10 if (!positionB) {
11 return 1;
12 }
13 return (Math.sign(positionA.line - positionB.line) || Math.sign(positionA.column - positionB.column));
14}
15exports.compareIssuePositions = compareIssuePositions;
Note: See TracBrowser for help on using the repository browser.