JavaScript: Teach Unused{Variable,Parameter} to ignore variables with leading underscore.

This commit is contained in:
Max Schaefer
2018-12-11 08:49:17 +00:00
parent a4b3b1e8c8
commit 4d186e0edc
7 changed files with 26 additions and 5 deletions

View File

@@ -20,6 +20,7 @@
| **Query** | **Expected impact** | **Change** |
|--------------------------------------------|------------------------------|------------------------------------------------------------------------------|
| Client-side cross-site scripting | More results | This rule now recognizes WinJS functions that are vulnerable to HTML injection. |
| Unused variable, import, function or class | Fewer false-positive results | This rule now flags fewer variables that are implictly used by JSX elements. |
| Unused parameter | Fewer false-positive results | This rule no longer flags parameters with leading underscore. |
| Unused variable, import, function or class | Fewer false-positive results | This rule now flags fewer variables that are implictly used by JSX elements, and no longer flags variables with leading underscore. |
## Changes to QL libraries