3.1.0
New rules
angular-whitespace: [true, 'check-interpolation', 'check-pipe']
- Checks if there's whitespace around an expression surrounded by interpolation characters, and after a pipe symbol.banana-in-box: true
- Checks for proper banana in a box syntax -[(ngModel)]
instead of([ngModel])
.templates-no-negated-async: true
- Enforces(foo | async) === false
, rather than!(foo | async)
, because of the initial falsy value emitted.use-view-encapsulation: true
- Enforces enabled view encapsulation.
Special thanks to @wKoza, @GregOnNet and @connor4312 for their contributions.
Features
- Align to the template parser API of Angular compiler 4.1.0 #301 0fcdcd1
- Align to the changes in the template parser API 4.1.3 #319 b608296
- Rule for enforcing
ViewEncapsulation
#300 509c8d9. Big thanks to @GregOnNet. - Add a no-negated-async rule #332 0f0924d. Big thanks to @connor4312.
- Enforce proper banana in a box syntax #331 f95b2d5
- Ensure whitespace around interpolation #320 335776f
Bug Fixes
- Template micro-syntax closure and 'bind only to public class members' #220 61f9fe9
- Report warnings when bound to private iterable in
*ngFor
#306 36705fc - 'templates-use-public' throws error when attempting to access a property of a property with the [] syntax #315 6323d2c
- no-access-missing-member doesn't work with external HTML #311 b608296
- rules name in documentation aren't consistent #325 7a67607. Big thanks to @wKoza.
- Our links to angular.io are broken #333 5a532b4. Big thanks to @wKoza.
- Report errors twice #336 44a9306