@es-joy/jsdoccomment
Advanced tools
Comparing version 0.14.1 to 0.14.2
# CHANGES for `@es-joy/jsdoccomment` | ||
## 0.14.2 | ||
### User-impacting | ||
- Fix: Find comments previous to parentheses (used commonly in TypeScript) | ||
### Dev-impacting | ||
- npm: Update devDeps. | ||
## 0.14.1 | ||
@@ -4,0 +14,0 @@ |
{ | ||
"name": "@es-joy/jsdoccomment", | ||
"version": "0.14.1", | ||
"version": "0.14.2", | ||
"author": "Brett Zamir <brettz9@yahoo.com>", | ||
@@ -45,10 +45,10 @@ "contributors": [], | ||
"devDependencies": { | ||
"@babel/core": "^7.16.5", | ||
"@babel/core": "^7.16.7", | ||
"@babel/plugin-syntax-class-properties": "^7.12.13", | ||
"@babel/preset-env": "^7.16.5", | ||
"@babel/preset-env": "^7.16.7", | ||
"@brettz9/eslint-plugin": "^1.0.4", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"c8": "^7.10.0", | ||
"c8": "^7.11.0", | ||
"chai": "^4.3.4", | ||
"eslint": "^8.5.0", | ||
"eslint": "^8.6.0", | ||
"eslint-config-ash-nazg": "32.2.0", | ||
@@ -60,4 +60,4 @@ "eslint-config-standard": "^16.0.3", | ||
"eslint-plugin-html": "^6.2.0", | ||
"eslint-plugin-import": "^2.25.3", | ||
"eslint-plugin-jsdoc": "^37.4.1", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-jsdoc": "^37.5.0", | ||
"eslint-plugin-markdown": "^2.2.1", | ||
@@ -69,3 +69,3 @@ "eslint-plugin-no-unsanitized": "^4.0.1", | ||
"eslint-plugin-sonarjs": "^0.11.0", | ||
"eslint-plugin-unicorn": "^39.0.0", | ||
"eslint-plugin-unicorn": "^40.0.0", | ||
"mocha": "^9.1.3", | ||
@@ -72,0 +72,0 @@ "rollup": "^2.62.0" |
@@ -208,2 +208,11 @@ /** | ||
); | ||
if ( | ||
tokenBefore && tokenBefore.type === 'Punctuator' && | ||
tokenBefore.value === '(' | ||
) { | ||
[tokenBefore] = sourceCode.getTokensBefore(currentNode, { | ||
count: 2, | ||
includeComments: true | ||
}); | ||
} | ||
if (!tokenBefore || !isCommentToken(tokenBefore)) { | ||
@@ -210,0 +219,0 @@ return null; |
Sorry, the diff of this file is not supported yet
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
53350
1020