Skip to content

Commit 75e3c35

Browse files
author
Ian VanSchooten
committed
Disallow short forms of type conversions
1 parent 014d031 commit 75e3c35

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

rules/best-practices.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
module.exports = {
44
'rules': {
55
// Specify curly brace conventions for all control statements
6-
'curly' : [2, 'multi-line'],
6+
'curly' : [2, 'multi-line'],
7+
// Disallow the type conversions with shorter notations
8+
'no-implicit-coercion': [2],
79
// Disallow use of multiple spaces
8-
'no-multi-spaces' : [2],
10+
'no-multi-spaces' : [2],
911
// Disallow reassignment of function parameters
10-
'no-param-reassign': [2],
12+
'no-param-reassign' : [2],
1113
// Disallow comparisons where both sides are exactly the same
12-
'no-self-compare' : [2],
14+
'no-self-compare' : [2],
1315
// Disallow usage of expressions in statement position
14-
'no-throw-literal' : [2],
16+
'no-throw-literal' : [2],
1517
},
1618
};

0 commit comments

Comments
 (0)