We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3e904d commit a70eec8Copy full SHA for a70eec8
packages/nx/src/utils/json.ts
@@ -1,6 +1,6 @@
1
import { parse, printParseErrorCode, stripComments } from 'jsonc-parser';
2
import type { ParseError, ParseOptions } from 'jsonc-parser';
3
-import LinesAndColumn from 'lines-and-columns';
+import { LinesAndColumns } from 'lines-and-columns';
4
5
export { stripComments as stripJsonComments };
6
@@ -72,7 +72,7 @@ function formatParseError(
72
numContextLine: number
73
) {
74
const { error, offset, length } = parseError;
75
- const { line, column } = new LinesAndColumn(input).locationForIndex(offset);
+ const { line, column } = new LinesAndColumns(input).locationForIndex(offset);
76
77
const errorLines = [
78
`${printParseErrorCode(error)} in JSON at ${line + 1}:${column + 1}`,
0 commit comments