1 |
'use strict'; |
2 |
|
3 |
function addOne(i) { |
Warning |
Column 3: "Expected indentation of 4 spaces but found 2."
indent
|
4 |
if (!isNaN(i)) { |
Warning |
Column 5: "Expected indentation of 6 spaces but found 4."
indent
|
Warning |
Column 15: "Missing semicolon."
semi
|
5 |
return i++ |
Warning |
Column 10: "Unnecessary 'else' after 'return'."
no-else-return
|
6 |
} else { |
Warning |
Column 5: "Expected indentation of 6 spaces but found 4."
indent
|
Warning |
Column 15: "Missing semicolon."
semi
|
7 |
return NaN |
8 |
} |
9 |
} |
10 |
|
11 |
exports.addOne = addOne; |
12 |
|