File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { RuleConverter } from "../../converter" ;
2
+
3
+ export const convertNoInputRename : RuleConverter = ( ) => {
4
+ return {
5
+ rules : [
6
+ {
7
+ ruleName : "@angular-eslint/no-input-rename" ,
8
+ } ,
9
+ ] ,
10
+ plugins : [ "@angular-eslint/eslint-plugin" ] ,
11
+ } ;
12
+ } ;
Original file line number Diff line number Diff line change
1
+ import { convertNoInputRename } from "../no-input-rename" ;
2
+
3
+ describe ( convertNoInputRename , ( ) => {
4
+ test ( "conversion without arguments" , ( ) => {
5
+ const result = convertNoInputRename ( {
6
+ ruleArguments : [ ] ,
7
+ } ) ;
8
+
9
+ expect ( result ) . toEqual ( {
10
+ rules : [
11
+ {
12
+ ruleName : "@angular-eslint/no-input-rename" ,
13
+ } ,
14
+ ] ,
15
+ plugins : [ "@angular-eslint/eslint-plugin" ] ,
16
+ } ) ;
17
+ } ) ;
18
+ } ) ;
Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ import { convertUsePipeDecorator } from "./converters/codelyzer/use-pipe-decorat
149
149
import { convertNoForwardRef } from "./converters/codelyzer/no-forward-ref" ;
150
150
import { convertNoHostMetadataProperty } from "./converters/codelyzer/no-host-metadata-property" ;
151
151
import { convertNoInputPrefix } from "./converters/codelyzer/no-input-prefix" ;
152
+ import { convertNoInputRename } from "./converters/codelyzer/no-input-rename" ;
152
153
153
154
/**
154
155
* Keys TSLint rule names to their ESLint rule converters.
@@ -228,6 +229,7 @@ export const rulesConverters = new Map([
228
229
[ "no-import-side-effect" , convertNoImportSideEffect ] ,
229
230
[ "no-inferrable-types" , convertNoInferrableTypes ] ,
230
231
[ "no-input-prefix" , convertNoInputPrefix ] ,
232
+ [ "no-input-rename" , convertNoInputRename ] ,
231
233
[ "no-internal-module" , convertNoInternalModule ] ,
232
234
[ "no-invalid-regexp" , convertNoInvalidRegexp ] ,
233
235
[ "no-invalid-template-strings" , convertNoInvalidTemplateStrings ] ,
You can’t perform that action at this time.
0 commit comments