aurelia / template-lint

Sanity check of Aurelia-flavor template HTML
Apache License 2.0
56 stars 17 forks source link

Stop warning about protected (maybe even private) access modifiers #165

Closed eamodio closed 7 years ago

eamodio commented 7 years ago

Since access modifiers are typescript only and provide no restrictions for Aurelia or at runtime, it seems (to me at least) that there shouldn't be warnings about them. Or at least a configuration option to turn them off.

As an example I often use protected as a modifier for things I want the view/template from having access to, but if someone were to get access to the VM directly I wouldn't want them to have access to (or at least it pollutes the api with things specific only for the view/template).

MeirionHughes commented 7 years ago
config.aureliaBindingAccessOpts.restrictedAccess = [];

https://github.com/MeirionHughes/aurelia-template-lint/blob/develop/source/config.ts#L142

eamodio commented 7 years ago

@MeirionHughes doh -- sorry about that :(

MeirionHughes commented 7 years ago

Don't worry about it. :)