Skip to content

Commit

Permalink
fix(eslint): Fix radix
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Jun 16, 2016
1 parent f1072a3 commit 53fd321
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@
"semi": [
2,
"always"
],
"radix": [
"error",
"always"
]
}
},
Expand Down
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const getAvl05 = raw => {
cid: parseInt(match[39], 16),
temperature: parseFloat(match[40]) / 10,
odometer: parseFloat(match[41]),
serialId: parseInt(match[42]),
serialId: parseInt(match[42], 10),
valid: isValid(match[0], parseInt(match[1], 16), parseInt(match[43], 16))
};
return data;
Expand Down Expand Up @@ -165,8 +165,8 @@ const getAvl08 = raw => {
cid: parseInt(match[39], 16),
temperature: parseFloat(match[40]) / 10,
odometer: parseFloat(match[41]),
serialId: parseInt(match[42]),
rfidNumber: match[43] ? parseInt(match[43]) : null,
serialId: parseInt(match[42], 10),
rfidNumber: match[43] ? parseInt(match[43], 10) : null,
valid: isValid(match[0], parseInt(match[1], 16), parseInt(match[44], 16))
};
return data;
Expand Down Expand Up @@ -211,7 +211,7 @@ const getAvl201 = raw => {
cid: parseInt(match[37], 16),
temperature: parseFloat(match[38]) / 10,
odometer: parseFloat(match[39]),
serialId: parseInt(match[40]),
serialId: parseInt(match[40], 10),
valid: isValid(match[0], parseInt(match[1], 16), parseInt(match[41], 16))
};
return data;
Expand Down

0 comments on commit 53fd321

Please sign in to comment.