Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-tsdoc

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-tsdoc - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

lib/ConfigCache.d.ts

17

CHANGELOG.json

@@ -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",

9

CHANGELOG.md
# 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

61

lib/index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc