This repository was archived by the owner on Mar 23, 2024. It is now read-only.
This repository was archived by the owner on Mar 23, 2024. It is now read-only.
JSCS confused over finally block indentation. #311
Closed
Description
Using a test module:
module.exports = function test() {
try {
console.log('hi');
} catch (e) {
console.error(e);
} finally {
console.log('bye');
}
};
I get the following output:
Expected indentation of 1 characters at test.js :
5 | console.error(e);
6 | } finally {
7 | console.log('bye');
---------^
8 | }
9 |}
Expected indentation of 0 characters at test.js :
6 | } finally {
7 | console.log('bye');
8 | }
--------^
9 |}
10 |
Expected indentation of -1 characters at test.js :
7 | console.log('bye');
8 | }
9 |}
-------^
10 |
I can switch off this behaviour by removing "validateIndentation": "\t",
.
Metadata
Metadata
Assignees
Labels
No labels