Skip to content

Commit df2d2fc

Browse files
committed
Merge pull request #3 from nutshellcrm/add-implicit-coercion-check
Add implicit coercion check
2 parents 5e47368 + 75e3c35 commit df2d2fc

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
"devDependencies": {
3434
"babel-eslint": "^4.1.4",
3535
"eslint": ">=1.6.0",
36+
"eslint-config-import": "^0.9.1",
3637
"eslint-plugin-babel": "^2.1.1",
38+
"eslint-plugin-import": "^0.10.0",
3739
"eslint-plugin-react": "^3.8.0"
3840
}
3941
}

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)