bahmutov / eslint-rules

My custom eslint rules in addition to the ones provided at http://eslint.org/
97 stars 16 forks source link

[Feature request] Ignore certain PropertyDefinition names with potential-point-free #54

Open Samuel-Therrien-Beslogic opened 2 years ago

Samuel-Therrien-Beslogic commented 2 years ago

See example below. This Angular hooks should not be point-free. I would like an option to be able to configure this rule to ignore the following PropertyDefinition: intercept, ngOnChanges, ngOnInit, ngDoCheck, ngAfterContentInit, ngAfterContentChecked, ngAfterViewInit, ngAfterViewChecked, ngOnDestroy, ... image