-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
rxjs.ts
57 lines (54 loc) · 1.51 KB
/
rxjs.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { fixupPluginRules } from "@eslint/compat";
import type { TSESLint } from "@typescript-eslint/utils";
// @ts-expect-error eslint-plugin-rxjs is not typed
import eslintPluginRxjs from "eslint-plugin-rxjs";
const rules: TSESLint.FlatConfig.Rules = {
"rxjs/ban-observables": 0,
"rxjs/ban-operators": 0,
"rxjs/finnish": 2,
"rxjs/just": 0,
"rxjs/no-async-subscribe": 0,
"rxjs/no-compat": 2,
"rxjs/no-connectable": 2,
"rxjs/no-create": 2,
"rxjs/no-cyclic-action": 2,
"rxjs/no-explicit-generics": 0,
"rxjs/no-exposed-subjects": 0,
"rxjs/no-finnish": 0,
"rxjs/no-ignored-error": 0,
"rxjs/no-ignored-notifier": 2,
"rxjs/no-ignored-observable": 2,
"rxjs/no-ignored-replay-buffer": 2,
"rxjs/no-ignored-subscribe": 0,
"rxjs/no-ignored-subscription": 0,
"rxjs/no-ignored-takewhile-value": 2,
"rxjs/no-implicit-any-catch": 2,
"rxjs/no-index": 2,
"rxjs/no-internal": 2,
"rxjs/no-nested-subscribe": 2,
"rxjs/no-redundant-notify": 2,
"rxjs/no-sharereplay": 2,
"rxjs/no-subclass": 2,
"rxjs/no-subject-unsubscribe": 2,
"rxjs/no-subject-value": 0,
"rxjs/no-subscribe-handlers": 0,
"rxjs/no-topromise": 2,
"rxjs/no-unbound-methods": 2,
"rxjs/no-unsafe-catch": 2,
"rxjs/no-unsafe-first": 2,
"rxjs/no-unsafe-subject-next": 2,
"rxjs/no-unsafe-switchmap": 2,
"rxjs/no-unsafe-takeuntil": 2,
"rxjs/prefer-observer": 0,
"rxjs/suffix-subjects": 0,
"rxjs/throw-error": 2,
};
const config: TSESLint.FlatConfig.ConfigArray = [
{
plugins: {
rxjs: fixupPluginRules(eslintPluginRxjs),
},
rules,
},
];
export default config;