Closed lundmikkel closed 2 years ago
Seems like I managed to find the solution:
"rxjs/finnish": [
"error",
{
"functions": false,
"methods": false,
"names": {
"^(canActivate|canActivateChild|canDeactivate|canLoad|intercept|resolve|validate)$": false,
},
"parameters": true,
"properties": true,
"strict": true,
"types": {
"^EventEmitter$": false,
"Subject$": false,
},
"variables": true,
},
],
"rxjs/suffix-subjects": "error",
(Moved the "Subject$": false
down to types
instead)
Is it possible to require observables to use finnish notation (
obs$
) and subjects to useSubject
suffix, but not both?Our rules currently look somewhat like this: