Skip to content

Instantly share code, notes, and snippets.

@timdeschryver
Created October 9, 2022 16:20
Show Gist options
  • Save timdeschryver/85ce798a28d8def0c33f34e67ec64b59 to your computer and use it in GitHub Desktop.
Save timdeschryver/85ce798a28d8def0c33f34e67ec64b59 to your computer and use it in GitHub Desktop.
{
"extends": "../../.eslintrc.json",
"overrides": [
{
"files": [
"*.ts"
],
"rules": {
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "rxjs",
"importNames": [
"audit",
"auditTime",
"buffer",
"bufferCount",
"bufferTime",
"bufferToggle",
"bufferWhen",
"catchError",
"combineAll",
"combineLatestAll",
"combineLatest",
"combineLatestWith",
"concat",
"concatAll",
"concatMap",
"concatMapTo",
"concatWith",
"connect",
"ConnectConfig",
"count",
"debounce",
"debounceTime",
"defaultIfEmpty",
"delay",
"delayWhen",
"dematerialize",
"distinct",
"distinctUntilChanged",
"distinctUntilKeyChanged",
"elementAt",
"endWith",
"every",
"exhaust",
"exhaustAll",
"exhaustMap",
"expand",
"filter",
"finalize",
"find",
"findIndex",
"first",
"groupBy",
"BasicGroupByOptions",
"GroupByOptionsWithElement",
"ignoreElements",
"isEmpty",
"last",
"map",
"mapTo",
"materialize",
"max",
"merge",
"mergeAll",
"flatMap",
"mergeMap",
"mergeMapTo",
"mergeScan",
"mergeWith",
"min",
"multicast",
"observeOn",
"onErrorResumeNext",
"pairwise",
"partition",
"pluck",
"publish",
"publishBehavior",
"publishLast",
"publishReplay",
"race",
"raceWith",
"reduce",
"repeat",
"repeatWhen",
"retry",
"RetryConfig",
"retryWhen",
"refCount",
"sample",
"sampleTime",
"scan",
"sequenceEqual",
"share",
"ShareConfig",
"shareReplay",
"ShareReplayConfig",
"single",
"skip",
"skipLast",
"skipUntil",
"skipWhile",
"startWith",
"subscribeOn",
"switchAll",
"switchMap",
"switchMapTo",
"switchScan",
"take",
"takeLast",
"takeUntil",
"takeWhile",
"tap",
"throttle",
"ThrottleConfig",
"throttleTime",
"throwIfEmpty",
"timeInterval",
"timeout",
"TimeoutConfig",
"TimeoutInfo",
"timeoutWith",
"timestamp",
"toArray",
"window",
"windowCount",
"windowTime",
"windowToggle",
"windowWhen",
"withLatestFrom",
"zip",
"zipAll",
"zipWith"
],
"message": "Import RxJS operators from 'rxjs/operators'."
}
]
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment