1
+ import { typescriptFiles } from "common/files" ;
1
2
import type { Linter } from "eslint" ;
2
3
3
4
export const settings : Linter . Config = {
4
5
plugins : [ "jsdoc" ] ,
5
6
7
+ extends : [ "plugin:jsdoc/recommended" ] ,
8
+
6
9
rules : {
7
- "jsdoc/check-access" : "warn" ,
8
- "jsdoc/check-alignment" : "warn" ,
9
10
// waiting on https://github.com/eslint/eslint/issues/14745
10
11
// "jsdoc/check-examples": "warn",
11
12
"jsdoc/check-indentation" : "warn" ,
12
13
"jsdoc/check-line-alignment" : "warn" ,
13
- "jsdoc/check-param-names" : "warn" ,
14
- "jsdoc/check-property-names" : "warn" ,
15
- "jsdoc/check-tag-names" : "warn" ,
16
- "jsdoc/check-types" : "warn" ,
17
- "jsdoc/check-values" : "warn" ,
18
- "jsdoc/empty-tags" : "warn" ,
19
- "jsdoc/implements-on-classes" : "warn" ,
20
- "jsdoc/multiline-blocks" : "warn" ,
21
- "jsdoc/newline-after-description" : "warn" ,
22
14
"jsdoc/no-bad-blocks" : "warn" ,
23
15
"jsdoc/no-defaults" : "warn" ,
24
- "jsdoc/no-multi-asterisks" : "warn" ,
25
- // For TypeScript
26
- "jsdoc/no-types" : "warn" ,
27
- "jsdoc/no-undefined-types" : "warn" ,
28
16
"jsdoc/require-asterisk-prefix" : "warn" ,
29
17
"jsdoc/require-description" : "warn" ,
30
18
// Rule is too strict.
@@ -47,20 +35,26 @@ export const settings: Linter.Config = {
47
35
} ,
48
36
} ,
49
37
] ,
50
- "jsdoc/require-param-description" : "warn" ,
51
- "jsdoc/require-param-name" : "warn" ,
52
- "jsdoc/require-property-description" : "warn" ,
53
- "jsdoc/require-property-name" : "warn" ,
54
- "jsdoc/require-returns-check" : "warn" ,
55
- "jsdoc/require-returns-description" : "warn" ,
56
38
"jsdoc/require-throws" : "warn" ,
57
- "jsdoc/require-yields" : "warn" ,
58
- "jsdoc/require-yields-check" : "warn" ,
59
39
"jsdoc/tag-lines" : [
60
40
"warn" ,
61
41
"never" ,
62
42
{ noEndLines : true , tags : { example : { lines : "always" } } } ,
63
43
] ,
64
- "jsdoc/valid-types" : "warn" ,
65
44
} ,
45
+
46
+ overrides : [
47
+ {
48
+ files : typescriptFiles ,
49
+ rules : {
50
+ "jsdoc/no-types" : "warn" ,
51
+ "jsdoc/require-param-type" : "off" ,
52
+ "jsdoc/require-param" : "off" ,
53
+ "jsdoc/require-property-type" : "off" ,
54
+ "jsdoc/require-property" : "off" ,
55
+ "jsdoc/require-returns-type" : "off" ,
56
+ "jsdoc/require-returns" : "off" ,
57
+ } ,
58
+ } ,
59
+ ] ,
66
60
} ;
0 commit comments