dojo / dojo-package-template

Dojo 2 - template to clone for creating packages (internal use)
Other
6 stars 18 forks source link

Custom tslint rules #35

Closed kitsonk closed 6 years ago

kitsonk commented 8 years ago

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.

kitsonk commented 7 years ago

References dojo/meta#164

dylans commented 6 years ago

Superseded by the switch to use Prettier, #99