Add relevant property tag

This commit is contained in:
Clément Fournier
2020-03-19 01:49:55 +01:00
parent eaceefc39e
commit 0d65c2e6e6
32 changed files with 223 additions and 5 deletions

View File

@ -18,6 +18,7 @@ Rules which enforce generally accepted best practices.
<description>Avoid using with - it's bad news</description>
<priority>1</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value>
<![CDATA[
@ -79,6 +80,7 @@ Global variables can lead to side-effects that are hard to debug.
</description>
<priority>1</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value>
<![CDATA[
@ -116,6 +118,7 @@ is better to explicitly scope the variable name to the nearest enclosing scope w
</description>
<priority>1</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value>
<![CDATA[
@ -171,6 +174,7 @@ See also: [parseInt()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/R
</description>
<priority>1</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value>
<![CDATA[

View File

@ -22,6 +22,7 @@ indicative of the bug where the assignment operator '=' was used instead of the
</description>
<priority>2</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value>
<![CDATA[
@ -72,6 +73,7 @@ Avoid using 'for' statements without using curly braces.
</description>
<priority>3</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value>
<![CDATA[
@ -107,6 +109,7 @@ Avoid using if..else statements without using curly braces.
</description>
<priority>3</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value>
<![CDATA[
@ -146,6 +149,7 @@ Avoid using if statements without using curly braces.
</description>
<priority>3</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value>
<![CDATA[
@ -182,6 +186,7 @@ See also: &lt;http://eslint.org/docs/rules/no-else-return>
</description>
<priority>3</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value>
<![CDATA[
@ -221,6 +226,7 @@ be misleading. Considering removing this unnecessary Block.
</description>
<priority>3</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value>
<![CDATA[
@ -256,6 +262,7 @@ if (bar) {
<description>Unnecessary parentheses should be removed.</description>
<priority>4</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value>
<![CDATA[
@ -285,6 +292,7 @@ will never execute. This is a bug, or extremely poor style.
</description>
<priority>1</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value>
<![CDATA[
@ -326,6 +334,7 @@ Avoid using 'while' statements without using curly braces.
</description>
<priority>3</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value>
<![CDATA[

View File

@ -20,6 +20,7 @@ This rule helps improve code portability due to differences in browser treatment
</description>
<priority>1</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value>
<![CDATA[
@ -57,6 +58,7 @@ same type. The === operator avoids the casting.
</description>
<priority>3</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value>
<![CDATA[
@ -104,6 +106,7 @@ precision in a floating point number. This may result in numeric calculations b
</description>
<priority>2</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value>
<![CDATA[