There are a few things covered in the style guide that are not caught by the linter. For example, the alignment of conditional blocks. For example this is "valid" to tslint:
if (true) {
console.log('true');
} else {
console.log('false');
}
When in fact, this is what the preferred style is:
if (true) {
console.log('true');
}
else {
console.log('false');
}
We should investigate how difficult it is to write custom rules for this and how to integrate them into the packaging.
There are a few things covered in the style guide that are not caught by the linter. For example, the alignment of conditional blocks. For example this is "valid" to tslint:
When in fact, this is what the preferred style is:
We should investigate how difficult it is to write custom rules for this and how to integrate them into the packaging.