1 |
'use strict'; |
2 |
|
Error |
Column 10: "'addOne' is defined but never used."
no-unused-vars
|
3 |
function addOne(i) { |
Warning |
Column 3: "Expected indentation of 4 spaces but found 2."
indent
|
Error |
Column 7: "Use the isNaN function to compare with NaN."
use-isnan
|
4 |
if (i != NaN) { |
Warning |
Column 5: "Expected indentation of 6 spaces but found 4."
indent
|
Error |
Column 12: "Unexpected space before unary operator '++'."
space-unary-ops
|
Warning |
Column 16: "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
|
Error |
Column 5: "Expected a return value."
consistent-return
|
Warning |
Column 11: "Missing semicolon."
semi
|
7 |
return |
8 |
} |
Error |
Column 2: "Unnecessary semicolon."
no-extra-semi
|
9 |
}; |
10 |
|