diff --git a/src/converters/lintConfigs/rules/ruleConverters.ts b/src/converters/lintConfigs/rules/ruleConverters.ts index 6ea67fd65..19d1ec55d 100644 --- a/src/converters/lintConfigs/rules/ruleConverters.ts +++ b/src/converters/lintConfigs/rules/ruleConverters.ts @@ -186,6 +186,7 @@ import { convertJsxWrapMultiline } from "./ruleConverters/eslint-plugin-react/js // eslint-plugin-rxjs converters import { convertNoAsyncSubscribe } from "./ruleConverters/eslint-plugin-rxjs/no-async-subscribe"; import { convertNoIgnoredReplayBuffer } from "./ruleConverters/eslint-plugin-rxjs/no-ignored-replay-buffer"; +import { convertNoRedundantNotify } from "./ruleConverters/eslint-plugin-rxjs/no-redundant-notify"; import { convertNoUnsafeSubjectNext } from "./ruleConverters/eslint-plugin-rxjs/no-unsafe-subject-next"; /** @@ -375,6 +376,7 @@ export const ruleConverters = new Map([ ["variable-name", convertVariableName], ["rxjs-no-async-subscribe", convertNoAsyncSubscribe], ["rxjs-no-ignored-replay-buffer", convertNoIgnoredReplayBuffer], + ["rxjs-no-redundant-notify", convertNoRedundantNotify], ["rxjs-no-unsafe-subject-next", convertNoUnsafeSubjectNext], // These converters are all for rules that need more complex option conversions. diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-redundant-notify.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-redundant-notify.ts new file mode 100644 index 000000000..1be51833f --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-redundant-notify.ts @@ -0,0 +1,12 @@ +import { RuleConverter } from "../../ruleConverter"; + +export const convertNoRedundantNotify: RuleConverter = () => { + return { + rules: [ + { + ruleName: "rxjs/no-redundant-notify", + }, + ], + plugins: ["eslint-plugin-rxjs"], + }; +}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-redundant-notify.test.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-redundant-notify.test.ts new file mode 100644 index 000000000..25d364def --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-redundant-notify.test.ts @@ -0,0 +1,18 @@ +import { convertNoRedundantNotify } from "../no-redundant-notify"; + +describe(convertNoRedundantNotify, () => { + test("conversion without arguments", () => { + const result = convertNoRedundantNotify({ + ruleArguments: [], + }); + + expect(result).toEqual({ + rules: [ + { + ruleName: "rxjs/no-redundant-notify", + }, + ], + plugins: ["eslint-plugin-rxjs"], + }); + }); +});