eslint-plugin-etc
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -0,1 +1,9 @@ | ||
<a name="1.3.5"></a> | ||
## [1.3.5](https://github.com/cartant/eslint-plugin-etc/compare/v1.3.4...v1.3.5) (2021-03-14) | ||
## Fixes | ||
- New lines and excess whitespace are now striped from deprecations reported by the `no-deprecated` rule. ([16d19d0](https://github.com/cartant/eslint-plugin-etc/commit/16d19d0)) | ||
<a name="1.3.4"></a> | ||
@@ -2,0 +10,0 @@ |
@@ -83,6 +83,9 @@ "use strict"; | ||
} | ||
const comment = tslint_tag_1.getTag("deprecated", identifier, typeChecker); | ||
if (comment !== undefined) { | ||
const tag = tslint_tag_1.getTag("deprecated", identifier, typeChecker); | ||
if (tag !== undefined) { | ||
context.report({ | ||
data: { comment, name: identifier.text }, | ||
data: { | ||
comment: tag.trim().replace(/[\n\r\s\t]+/g, " "), | ||
name: identifier.text, | ||
}, | ||
messageId: "forbidden", | ||
@@ -89,0 +92,0 @@ node, |
@@ -81,3 +81,3 @@ { | ||
}, | ||
"version": "1.3.4" | ||
"version": "1.3.5" | ||
} |
77768
1284