You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since RxJS v7.2.0, operators should be imported from "rxjs" instead of "rxjs/operators": https://rxjs.dev/guide/importing. We should add a rule for enforcing this.
I've been using the below rule I configured myself but it would definitely be nice to have a rule included with this plugin.
'@typescript-eslint/no-restricted-imports': ['error',{paths: [{name: 'rxjs/Rx',message: 'rxjs/Rx is no longer a valid import site. This is very old import path for RxJS, use `from rxjs`.',},{name: 'rxjs/operators',message: "With RxJS v7.2.0, most operators have been moved to 'rxjs' export site. This means that the preferred way to import operators is from 'rxjs', while 'rxjs/operators' export site has been deprecated. https://rxjs.dev/guide/importing#new-in-rxjs-v720",},],
Since RxJS v7.2.0, operators should be imported from "rxjs" instead of "rxjs/operators": https://rxjs.dev/guide/importing. We should add a rule for enforcing this.
Related: #7 , ReactiveX/rxjs#6488, cartant#108, cartant#121
The text was updated successfully, but these errors were encountered: