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

eslint-plugin-jsdoc

Package Overview
Dependencies
Maintainers
1
Versions
661
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-jsdoc - npm Package Compare versions

Comparing version 3.7.2 to 3.8.0

24

dist/iterateJsdoc.js

@@ -56,6 +56,4 @@ 'use strict';

var parseComment = exports.parseComment = function parseComment(commentNode) {
var parseComment = exports.parseComment = function parseComment(commentNode, indent) {
// Preserve JSDoc block start/end indentation.
var indent = _lodash2.default.repeat(' ', commentNode.loc.start.column);
return (0, _commentParser2.default)(indent + '/*' + commentNode.value + indent + '*/', {

@@ -89,12 +87,28 @@ // @see https://github.com/yavorskiy/comment-parser/issues/21

var jsdoc = parseComment(jsdocNode);
var jsdoc = parseComment(jsdocNode, indent);
var report = function report(message) {
var fixer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
var jsdocLine = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
var loc = void 0;
if (jsdocLine) {
var lineNumber = jsdocNode.loc.start.line + jsdocLine.line;
loc = {
end: { line: lineNumber },
start: { line: lineNumber }
};
}
if (fixer === null) {
context.report(jsdocNode, message);
context.report({
loc,
message,
node: jsdocNode
});
} else {
context.report({
fix: fixer,
loc,
message,

@@ -101,0 +115,0 @@ node: jsdocNode

@@ -1,1 +0,1 @@

{"author":{"email":"gajus@gajus.com","name":"Gajus Kuizinas","url":"http://gajus.com"},"dependencies":{"comment-parser":"^0.4.2","jsdoctypeparser":"^2.0.0-alpha-8","lodash":"^4.17.4"},"description":"JSDoc linting rules for ESLint.","devDependencies":{"babel-cli":"^6.26.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-flow-strip-types":"^6.22.0","babel-preset-env":"^1.6.0","babel-preset-es2015":"^6.24.1","babel-register":"^6.26.0","chai":"^4.1.2","eslint":"^4.19.1","eslint-config-canonical":"^9.3.1","gitdown":"^2.5.1","glob":"^7.1.2","globby":"^6.1.0","mocha":"^3.5.3","semantic-release":"^8.0.3"},"engines":{"node":">=4"},"keywords":["eslint","plugin","jsdoc"],"license":"BSD-3-Clause","main":"./dist/index.js","name":"eslint-plugin-jsdoc","peerDependencies":{"eslint":">=4.14.0"},"repository":{"type":"git","url":"https://github.com/gajus/eslint-plugin-jsdoc"},"scripts":{"add-assertions":"babel-node --presets es2015 ./src/bin/readme-assertions","build":"NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps","generate-readme":"gitdown ./.README/README.md --output-file ./README.md && npm run add-assertions","lint":"eslint ./src ./test","test":"mocha --recursive --compilers js:babel-register"},"version":"3.7.2"}
{"author":{"email":"gajus@gajus.com","name":"Gajus Kuizinas","url":"http://gajus.com"},"dependencies":{"comment-parser":"^0.4.2","jsdoctypeparser":"^2.0.0-alpha-8","lodash":"^4.17.4"},"description":"JSDoc linting rules for ESLint.","devDependencies":{"babel-cli":"^6.26.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-flow-strip-types":"^6.22.0","babel-preset-env":"^1.6.0","babel-preset-es2015":"^6.24.1","babel-register":"^6.26.0","chai":"^4.1.2","eslint":"^4.19.1","eslint-config-canonical":"^9.3.1","gitdown":"^2.5.1","glob":"^7.1.2","globby":"^6.1.0","mocha":"^3.5.3","semantic-release":"^8.0.3"},"engines":{"node":">=4"},"keywords":["eslint","plugin","jsdoc"],"license":"BSD-3-Clause","main":"./dist/index.js","name":"eslint-plugin-jsdoc","peerDependencies":{"eslint":">=4.14.0"},"repository":{"type":"git","url":"https://github.com/gajus/eslint-plugin-jsdoc"},"scripts":{"add-assertions":"babel-node --presets es2015 ./src/bin/readme-assertions","build":"NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps","generate-readme":"gitdown ./.README/README.md --output-file ./README.md && npm run add-assertions","lint":"eslint ./src ./test","test":"mocha --recursive --compilers js:babel-register"},"version":"3.8.0"}

Sorry, the diff of this file is not supported yet

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