// works as expected
function test(arr) {
return arr.some(v => {
return v;
});
}
// does not work as expected; should have same level of indentation as above
function test(arr) {
return !arr.some(v => {
return v;
});
}
let hasSome;
// works as expected
hasSome = arr.some(v => {
return v;
});
// does not work as expected; should have same level of indentation as above
hasSome = !arr.some(v => {
return v;
});
$ eslint testIndent.js
\testIndent.js
11:13 error Expected indentation of 8 space characters but found 12 indent
12:9 error Expected indentation of 4 space characters but found 8 indent
24:9 error Expected indentation of 4 space characters but found 8 indent
25:5 error Expected indentation of 0 space characters but found 4 indent
✖ 4 problems (4 errors, 0 warnings)
esformatter@0.9.4
>$ esformatter testIndent.js
.esformatter
.eslintrc