File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ import { convertNoObjectLiteralTypeAssertion } from "./converters/no-object-lite
74
74
import { convertNoOctalLiteral } from "./converters/no-octal-literal" ;
75
75
import { convertNoParameterProperties } from "./converters/no-parameter-properties" ;
76
76
import { convertNoParameterReassignment } from "./converters/no-parameter-reassignment" ;
77
+ import { convertNoRedundantJsdoc } from "./converters/no-redundant-jsdoc" ;
77
78
import { convertNoReference } from "./converters/no-reference" ;
78
79
import { convertNoRegexSpaces } from "./converters/no-regex-spaces" ;
79
80
import { convertNoRequireImports } from "./converters/no-require-imports" ;
@@ -210,6 +211,7 @@ export const converters = new Map([
210
211
[ "no-octal-literal" , convertNoOctalLiteral ] ,
211
212
[ "no-parameter-properties" , convertNoParameterProperties ] ,
212
213
[ "no-parameter-reassignment" , convertNoParameterReassignment ] ,
214
+ [ "no-redundant-jsdoc" , convertNoRedundantJsdoc ] ,
213
215
[ "no-reference" , convertNoReference ] ,
214
216
[ "no-regex-spaces" , convertNoRegexSpaces ] ,
215
217
[ "no-require-imports" , convertNoRequireImports ] ,
Original file line number Diff line number Diff line change
1
+ import { RuleConverter } from "../converter" ;
2
+
3
+ export const convertNoRedundantJsdoc : RuleConverter = ( ) => ( {
4
+ rules : [
5
+ {
6
+ ruleName : "jsdoc/no-types" ,
7
+ } ,
8
+ ] ,
9
+ plugins : [ "eslint-plugin-jsdoc" ] ,
10
+ } ) ;
Original file line number Diff line number Diff line change
1
+ import { convertNoRedundantJsdoc } from "../no-redundant-jsdoc" ;
2
+
3
+ describe ( convertNoRedundantJsdoc , ( ) => {
4
+ test ( "conversion without arguments" , ( ) => {
5
+ const result = convertNoRedundantJsdoc ( {
6
+ ruleArguments : [ ] ,
7
+ } ) ;
8
+
9
+ expect ( result ) . toEqual ( {
10
+ rules : [
11
+ {
12
+ ruleName : "jsdoc/no-types" ,
13
+ } ,
14
+ ] ,
15
+ plugins : [ "eslint-plugin-jsdoc" ] ,
16
+ } ) ;
17
+ } ) ;
18
+ } ) ;
You can’t perform that action at this time.
0 commit comments