@forge/lint 5.6.1-next.0 → 5.6.1-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,88 @@
1
1
  # @forge/lint
2
2
 
3
+ ## 5.6.1-next.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [5c5aa55]
8
+ - @forge/manifest@8.1.0-next.7
9
+ - @forge/cli-shared@6.4.0-next.10
10
+
11
+ ## 5.6.1-next.9
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [08c832b]
16
+ - @forge/cli-shared@6.4.0-next.9
17
+
18
+ ## 5.6.1-next.8
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [34fe2fa]
23
+ - Updated dependencies [c3a2fca]
24
+ - @forge/cli-shared@6.4.0-next.8
25
+ - @forge/manifest@8.1.0-next.6
26
+
27
+ ## 5.6.1-next.7
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [2993e98]
32
+ - @forge/manifest@8.1.0-next.5
33
+ - @forge/cli-shared@6.4.0-next.7
34
+
35
+ ## 5.6.1-next.6
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [a2eed13]
40
+ - Updated dependencies [80f2659]
41
+ - Updated dependencies [6fddb0a]
42
+ - Updated dependencies [cefd0cd]
43
+ - @forge/cli-shared@6.4.0-next.6
44
+ - @forge/manifest@8.1.0-next.4
45
+
46
+ ## 5.6.1-next.5
47
+
48
+ ### Patch Changes
49
+
50
+ - 85663fe: Display filename, index, line, and column when linting results in a compilation error.
51
+ - Updated dependencies [85663fe]
52
+ - @forge/cli-shared@6.4.0-next.5
53
+
54
+ ## 5.6.1-next.4
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies [319c5aa]
59
+ - Updated dependencies [88b77fc]
60
+ - @forge/manifest@8.1.0-next.3
61
+ - @forge/cli-shared@6.4.0-next.4
62
+
63
+ ## 5.6.1-next.3
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies [3d8c83f]
68
+ - @forge/manifest@8.1.0-next.2
69
+ - @forge/cli-shared@6.4.0-next.3
70
+
71
+ ## 5.6.1-next.2
72
+
73
+ ### Patch Changes
74
+
75
+ - Updated dependencies [fa239b2]
76
+ - @forge/cli-shared@6.4.0-next.2
77
+
78
+ ## 5.6.1-next.1
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [f5a52b8]
83
+ - @forge/manifest@8.0.1-next.1
84
+ - @forge/cli-shared@6.3.1-next.1
85
+
3
86
  ## 5.6.1-next.0
4
87
 
5
88
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../src/lint/lint.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,MAAM,IAAI,CAAC;AAIpB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAkB,MAAM,oBAAoB,CAAC;AAYxG,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,WAAY,UAAU,eAAe,UAAU,EAAE,4BAAuB,IA+CrG,CAAC;AAEF,eAAO,MAAM,YAAY,gBAAiB,UAAU,EAAE,KAAG,YAQxD,CAAC;AAEF,eAAO,MAAM,eAAe,aAChB,MAAM,UACR,eAAe,oBACN,OAAO,GAAG,QAAQ,CAAC,aAAa,KAChD,QAAQ,SAAS,CAOnB,CAAC;AAEF,eAAO,MAAM,IAAI,gBACF,MAAM,EAAE,YACX,QAAQ,eACL,MAAM,UACX,UAAU,6BAhBR,MAAM,UACR,eAAe,oBACN,OAAO,GAAG,QAAQ,CAAC,aAAa,KAChD,QAAQ,SAAS,CAAC,YAeV,eAAe,EAAE,KAWzB,QAAQ,UAAU,EAAE,CAyCtB,CAAC;AAEF,eAAO,MAAM,QAAQ,WACX,UAAU,WACV,eAAe,KACtB,QAAQ,UAAU,EAAE,CAGtB,CAAC"}
1
+ {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../src/lint/lint.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,MAAM,IAAI,CAAC;AAIpB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAkB,MAAM,oBAAoB,CAAC;AAYxG,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,WAAY,UAAU,eAAe,UAAU,EAAE,4BAAuB,IA+CrG,CAAC;AAEF,eAAO,MAAM,YAAY,gBAAiB,UAAU,EAAE,KAAG,YAQxD,CAAC;AAEF,eAAO,MAAM,eAAe,aAChB,MAAM,UACR,eAAe,oBACN,OAAO,GAAG,QAAQ,CAAC,aAAa,KAChD,QAAQ,SAAS,CAOnB,CAAC;AAEF,eAAO,MAAM,IAAI,gBACF,MAAM,EAAE,YACX,QAAQ,eACL,MAAM,UACX,UAAU,6BAhBR,MAAM,UACR,eAAe,oBACN,OAAO,GAAG,QAAQ,CAAC,aAAa,KAChD,QAAQ,SAAS,CAAC,YAeV,eAAe,EAAE,KAWzB,QAAQ,UAAU,EAAE,CAyCtB,CAAC;AAwBF,eAAO,MAAM,QAAQ,WACX,UAAU,WACV,eAAe,KACtB,QAAQ,UAAU,EAAE,CAGtB,CAAC"}
package/out/lint/lint.js CHANGED
@@ -118,10 +118,23 @@ const lint = async (filesToLint, manifest, environment, logger, parseFunction =
118
118
  });
119
119
  }
120
120
  catch (e) {
121
- throw new cli_shared_1.ApplicationCompileError(e);
121
+ throw new cli_shared_1.ApplicationCompileError(formatCompileErrorMessage(e));
122
122
  }
123
123
  };
124
124
  exports.lint = lint;
125
+ function formatCompileErrorMessage(error) {
126
+ let errorMessage = error.message;
127
+ if (error.fileName) {
128
+ errorMessage += `\nin ${error.fileName}`;
129
+ }
130
+ if (error.index !== undefined) {
131
+ errorMessage += `\nat index ${error.index}`;
132
+ }
133
+ if (error.lineNumber !== undefined && error.column !== undefined) {
134
+ errorMessage += `\nat line ${error.lineNumber}, column ${error.column}`;
135
+ }
136
+ return errorMessage;
137
+ }
125
138
  const litelint = async (logger, linter = new basic_manifest_linter_1.BasicManifestLinter(logger)) => {
126
139
  await linter.bootstrap();
127
140
  return linter.batchExecute();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/lint",
3
- "version": "5.6.1-next.0",
3
+ "version": "5.6.1-next.10",
4
4
  "description": "Linting for forge apps",
5
5
  "main": "out/index.js",
6
6
  "license": "UNLICENSED",
@@ -19,9 +19,9 @@
19
19
  "eslint-plugin-import": "^2.29.1"
20
20
  },
21
21
  "dependencies": {
22
- "@forge/cli-shared": "6.3.1-next.0",
22
+ "@forge/cli-shared": "6.4.0-next.10",
23
23
  "@forge/egress": "1.2.13",
24
- "@forge/manifest": "8.0.1-next.0",
24
+ "@forge/manifest": "8.1.0-next.7",
25
25
  "@typescript-eslint/typescript-estree": "^5.62.0",
26
26
  "array.prototype.flatmap": "^1.3.2",
27
27
  "atlassian-openapi": "^1.0.18",