We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e05416f commit bcace0eCopy full SHA for bcace0e
1 file changed
packages/core/index.ts
@@ -211,10 +211,14 @@ export function createLinter(
211
length: end - start,
212
source: 'tsslint',
213
get relatedInformation() {
214
- return getRelatedInformations(location[0], location[1]);
+ return relatedInformation ??= getRelatedInformations(location[0], location[1]);
215
+ },
216
+ set relatedInformation(value) {
217
+ relatedInformation = value;
218
},
219
};
220
let location: [Error, number] = [new Error(), 1];
221
+ let relatedInformation: ts.DiagnosticRelatedInformation[] | undefined;
222
let cachedObj: ts.DiagnosticWithLocation | undefined;
223
224
if (cache && !rule2Mode.get(currentRuleId)) {
0 commit comments