You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 8, 2021. It is now read-only.
'use strict';
function foo(x) {
switch (x) {
case 'a':
return 1;
case 'b':
return 2;
default:
return 'c';
}
}
foo(1);
Results in:
/home/willy/foo/switch.js
5:5 Expected indentation of 2 space characters but found 4. (indent)
6:7 Expected indentation of 4 space characters but found 6. (indent)
7:5 Expected indentation of 2 space characters but found 4. (indent)
8:7 Expected indentation of 4 space characters but found 6. (indent)
9:5 Expected indentation of 2 space characters but found 4. (indent)
10:7 Expected indentation of 4 space characters but found 6. (indent)
Whereas:
'use strict';
function foo(x) {
switch (x) {
case 'a':
return 1;
case 'b':
return 2;
default:
return 'c';
}
}
foo(1);
Passes the linter. Surely this can't be right? Seems to have changed from v4.