Skip to content

Commit ba5af95

Browse files
committed
Allow to omit types in JSDoc in TypeScript
Closes #19.
1 parent bb25401 commit ba5af95

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rules.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const jsRules = {
1010
strict: ['error', 'global'],
1111

1212
'jsdoc/no-undefined-types': 'warn',
13+
'jsdoc/require-param-type': 'warn',
14+
'jsdoc/require-returns-type': 'warn',
1315
},
1416
};
1517

@@ -28,6 +30,7 @@ const tsRules = {
2830
plugins: ['@typescript-eslint'],
2931
rules: {
3032
'@typescript-eslint/no-floating-promises': 'off',
33+
'jsdoc/no-types': 'warn',
3134
},
3235
};
3336

@@ -236,10 +239,8 @@ const baseRules = {
236239
'jsdoc/require-param': 'warn',
237240
'jsdoc/require-param-description': 'warn',
238241
'jsdoc/require-param-name': 'warn',
239-
'jsdoc/require-param-type': 'warn',
240242
'jsdoc/require-returns-check': 'warn',
241243
'jsdoc/require-returns-description': 'warn',
242-
'jsdoc/require-returns-type': 'warn',
243244
'jsdoc/valid-types': 'warn',
244245
},
245246
settings: {

0 commit comments

Comments
 (0)