File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed
src/converters/lintConfigs/rules
ruleConverters/eslint-plugin-rxjs Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,7 @@ import { convertNoInternal } from "./ruleConverters/eslint-plugin-rxjs/no-intern
193
193
import { convertNoNestedSubscribe } from "./ruleConverters/eslint-plugin-rxjs/no-nested-subscribe" ;
194
194
import { convertNoRedundantNotify } from "./ruleConverters/eslint-plugin-rxjs/no-redundant-notify" ;
195
195
import { convertNoShareReplay } from "./ruleConverters/eslint-plugin-rxjs/no-sharereplay" ;
196
+ import { convertNoUnboundMethods } from "./ruleConverters/eslint-plugin-rxjs/no-unbound-methods" ;
196
197
import { convertNoUnsafeSubjectNext } from "./ruleConverters/eslint-plugin-rxjs/no-unsafe-subject-next" ;
197
198
198
199
/**
@@ -389,6 +390,7 @@ export const ruleConverters = new Map([
389
390
[ "rxjs-no-nested-subscribe" , convertNoNestedSubscribe ] ,
390
391
[ "rxjs-no-redundant-notify" , convertNoRedundantNotify ] ,
391
392
[ "rxjs-no-sharereplay" , convertNoShareReplay ] ,
393
+ [ "rxjs-no-unbound-methods" , convertNoUnboundMethods ] ,
392
394
[ "rxjs-no-unsafe-subject-next" , convertNoUnsafeSubjectNext ] ,
393
395
394
396
// These converters are all for rules that need more complex option conversions.
Original file line number Diff line number Diff line change
1
+ import { RuleConverter } from "../../ruleConverter" ;
2
+
3
+ export const convertNoUnboundMethods : RuleConverter = ( ) => {
4
+ return {
5
+ rules : [
6
+ {
7
+ ruleName : "rxjs/no-unbound-methods" ,
8
+ } ,
9
+ ] ,
10
+ plugins : [ "eslint-plugin-rxjs" ] ,
11
+ } ;
12
+ } ;
Original file line number Diff line number Diff line change
1
+ import { convertNoUnboundMethods } from "../no-unbound-methods" ;
2
+
3
+ describe ( convertNoUnboundMethods , ( ) => {
4
+ test ( "conversion without arguments" , ( ) => {
5
+ const result = convertNoUnboundMethods ( {
6
+ ruleArguments : [ ] ,
7
+ } ) ;
8
+
9
+ expect ( result ) . toEqual ( {
10
+ rules : [
11
+ {
12
+ ruleName : "rxjs/no-unbound-methods" ,
13
+ } ,
14
+ ] ,
15
+ plugins : [ "eslint-plugin-rxjs" ] ,
16
+ } ) ;
17
+ } ) ;
18
+ } ) ;
You can’t perform that action at this time.
0 commit comments