File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed
src/converters/lintConfigs/rules Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ import { convertNoDuplicateImports } from "./ruleConverters/no-duplicate-imports
53
53
import { convertNoDuplicateSuper } from "./ruleConverters/no-duplicate-super" ;
54
54
import { convertNoDuplicateSwitchCase } from "./ruleConverters/no-duplicate-switch-case" ;
55
55
import { convertNoDuplicateVariable } from "./ruleConverters/no-duplicate-variable" ;
56
+ import { convertNoDynamicDelete } from './ruleConverters/no-dynamic-delete' ;
56
57
import { convertNoEmpty } from "./ruleConverters/no-empty" ;
57
58
import { convertNoEmptyInterface } from "./ruleConverters/no-empty-interface" ;
58
59
import { convertNoEval } from "./ruleConverters/no-eval" ;
@@ -301,6 +302,7 @@ export const ruleConverters = new Map([
301
302
[ "no-duplicate-super" , convertNoDuplicateSuper ] ,
302
303
[ "no-duplicate-switch-case" , convertNoDuplicateSwitchCase ] ,
303
304
[ "no-duplicate-variable" , convertNoDuplicateVariable ] ,
305
+ [ "no-dynamic-delete" , convertNoDynamicDelete ] ,
304
306
[ "no-empty-interface" , convertNoEmptyInterface ] ,
305
307
[ "no-empty" , convertNoEmpty ] ,
306
308
[ "no-eval" , convertNoEval ] ,
Original file line number Diff line number Diff line change
1
+ import { RuleConverter } from "../ruleConverter" ;
2
+
3
+ export const convertNoDynamicDelete : RuleConverter = ( ) => {
4
+ return {
5
+ rules : [
6
+ {
7
+ ruleName : "@typescript-eslint/no-dynamic-delete" ,
8
+ } ,
9
+ ] ,
10
+ } ;
11
+ } ;
Original file line number Diff line number Diff line change
1
+ import { convertNoDynamicDelete } from "../no-dynamic-delete" ;
2
+
3
+ describe ( convertNoDynamicDelete , ( ) => {
4
+ test ( "conversion without arguments" , ( ) => {
5
+ const result = convertNoDynamicDelete ( {
6
+ ruleArguments : [ ] ,
7
+ } ) ;
8
+
9
+ expect ( result ) . toEqual ( {
10
+ rules : [
11
+ {
12
+ ruleName : "@typescript-eslint/no-dynamic-delete" ,
13
+ } ,
14
+ ] ,
15
+ } ) ;
16
+ } ) ;
17
+ } ) ;
You can’t perform that action at this time.
0 commit comments