eslint-plugin-tsdoc
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -5,2 +5,19 @@ { | ||
{ | ||
"version": "0.2.1", | ||
"tag": "eslint-plugin-tsdoc_v0.2.1", | ||
"date": "Tue, 21 Jan 2020 21:26:36 GMT", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"comment": "Use a cache to avoid repeatedly reloading tsdoc.json during linting" | ||
} | ||
], | ||
"dependency": [ | ||
{ | ||
"comment": "Updating dependency \"@microsoft/tsdoc-config\" from `0.12.16` to `0.13.0`" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"version": "0.2.0", | ||
@@ -7,0 +24,0 @@ "tag": "eslint-plugin-tsdoc_v0.2.0", |
# Change Log - eslint-plugin-tsdoc | ||
This log was last generated on Tue, 19 Nov 2019 22:01:56 GMT and should not be manually modified. | ||
This log was last generated on Tue, 21 Jan 2020 21:26:36 GMT and should not be manually modified. | ||
## 0.2.1 | ||
Tue, 21 Jan 2020 21:26:36 GMT | ||
### Patches | ||
- Use a cache to avoid repeatedly reloading tsdoc.json during linting | ||
## 0.2.0 | ||
@@ -6,0 +13,0 @@ Tue, 19 Nov 2019 22:01:56 GMT |
@@ -14,3 +14,4 @@ "use strict"; | ||
var tsdoc_1 = require("@microsoft/tsdoc"); | ||
var tsdoc_config_1 = require("@microsoft/tsdoc-config"); | ||
var Debug_1 = require("./Debug"); | ||
var ConfigCache_1 = require("./ConfigCache"); | ||
var tsdocMessageIds = {}; | ||
@@ -38,28 +39,40 @@ var defaultTSDocConfiguration = new tsdoc_1.TSDocConfiguration(); | ||
create: function (context) { | ||
var sourceFilePath = context.getFilename(); | ||
Debug_1.Debug.log("Linting: \"" + sourceFilePath + "\""); | ||
var tsdocConfiguration = new tsdoc_1.TSDocConfiguration(); | ||
var sourceFilePath = context.getFilename(); | ||
var tsdocConfigFile = tsdoc_config_1.TSDocConfigFile.loadForFolder(sourceFilePath); | ||
if (!tsdocConfigFile.fileNotFound) { | ||
if (tsdocConfigFile.hasErrors) { | ||
context.report({ | ||
loc: { line: 1, column: 1 }, | ||
messageId: "error-loading-config-file", | ||
data: { | ||
details: tsdocConfigFile.getErrorSummary() | ||
} | ||
}); | ||
try { | ||
var tsdocConfigFile = ConfigCache_1.ConfigCache.getForSourceFile(sourceFilePath); | ||
if (!tsdocConfigFile.fileNotFound) { | ||
if (tsdocConfigFile.hasErrors) { | ||
context.report({ | ||
loc: { line: 1, column: 1 }, | ||
messageId: "error-loading-config-file", | ||
data: { | ||
details: tsdocConfigFile.getErrorSummary() | ||
} | ||
}); | ||
} | ||
try { | ||
tsdocConfigFile.configureParser(tsdocConfiguration); | ||
} | ||
catch (e) { | ||
context.report({ | ||
loc: { line: 1, column: 1 }, | ||
messageId: "error-applying-config", | ||
data: { | ||
details: e.message | ||
} | ||
}); | ||
} | ||
} | ||
try { | ||
tsdocConfigFile.configureParser(tsdocConfiguration); | ||
} | ||
catch (e) { | ||
context.report({ | ||
loc: { line: 1, column: 1 }, | ||
messageId: "error-applying-config", | ||
data: { | ||
details: e.message | ||
} | ||
}); | ||
} | ||
} | ||
catch (e) { | ||
context.report({ | ||
loc: { line: 1, column: 1 }, | ||
messageId: "error-loading-config-file", | ||
data: { | ||
details: "Unexpected exception: " + e.message | ||
} | ||
}); | ||
} | ||
var tsdocParser = new tsdoc_1.TSDocParser(tsdocConfiguration); | ||
@@ -66,0 +79,0 @@ var sourceCode = context.getSourceCode(); |
{ | ||
"name": "eslint-plugin-tsdoc", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "An ESLint plugin that validates TypeScript doc comments", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
"@microsoft/tsdoc": "0.12.16", | ||
"@microsoft/tsdoc-config": "0.12.16" | ||
"@microsoft/tsdoc-config": "0.13.0" | ||
}, | ||
@@ -33,0 +33,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18689
13
349
+ Added@microsoft/tsdoc-config@0.13.0(transitive)
+ Addedjju@1.4.0(transitive)
- Removed@microsoft/tsdoc-config@0.12.16(transitive)