jsdoc.js
3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
'use strict';
module.exports = {
plugins: [ 'jsdoc' ],
settings: {
jsdoc: { tagNamePreference: { returns: 'return' } },
},
rules: {
/**
* Ensures that (JavaScript) examples within JSDoc adhere to ESLint rules.
* @see https://github.com/gajus/eslint-plugin-jsdoc#check-examples
*/
'jsdoc/check-examples': 'off',
/**
* Ensures that parameter names in JSDoc match those in the function declaration.
* @see https://github.com/gajus/eslint-plugin-jsdoc#check-param-names
*/
'jsdoc/check-param-names': 1,
/**
* Reports invalid block tag names.
* @see https://github.com/gajus/eslint-plugin-jsdoc#check-tag-names
*/
'jsdoc/check-tag-names': 1,
/**
* Reports invalid types.
* @see https://github.com/gajus/eslint-plugin-jsdoc#check-types
*/
'jsdoc/check-types': 'off',
/**
* Enforces a consistent padding of the block description.
* @see https://github.com/gajus/eslint-plugin-jsdoc#newline-after-description
*/
'jsdoc/newline-after-description': 'off',
/**
* Checks that types in jsdoc comments are defined. This can be used to check unimported types.
* @see https://github.com/gajus/eslint-plugin-jsdoc#no-undefined-types
*/
'jsdoc/no-undefined-types': 'off',
/**
* Requires that all functions have a description.
* @see https://github.com/gajus/eslint-plugin-jsdoc#require-description
*/
'jsdoc/require-description': 'off',
/**
* Requires that block description and tag description are written in complete sentences
* @see https://github.com/gajus/eslint-plugin-jsdoc#require-description-complete-sentence
*/
'jsdoc/require-description-complete-sentence': 'off',
/**
* Requires that all functions have examples.
* @see https://github.com/gajus/eslint-plugin-jsdoc#require-example
*/
'jsdoc/require-example': 'off',
/**
* Requires a hyphen before the @param description.
* @see https://github.com/gajus/eslint-plugin-jsdoc#require-hyphen-before-param-description
*/
'jsdoc/require-hyphen-before-param-description': 'off',
/**
* Requires that all function parameters are documented.
* @see https://github.com/gajus/eslint-plugin-jsdoc#require-param
*/
'jsdoc/require-param': 1,
/**
* Requires that @param tag has description value.
* @see https://github.com/gajus/eslint-plugin-jsdoc#require-param-description
*/
'jsdoc/require-param-description': 1,
/**
* Requires that all function parameters have name.
* @see https://github.com/gajus/eslint-plugin-jsdoc#require-param-name
*/
'jsdoc/require-param-name': 1,
/**
* Requires that @param tag has type value.
* @see https://github.com/gajus/eslint-plugin-jsdoc#require-param-type
*/
'jsdoc/require-param-type': 1,
/**
* Requires returns are documented.
* @see https://github.com/gajus/eslint-plugin-jsdoc#require-returns
*/
'jsdoc/require-returns': 'off',
/**
* Checks if the return expression exists in function body and in the comment.
* @see https://github.com/gajus/eslint-plugin-jsdoc#require-returns-check
*/
'jsdoc/require-returns-check': 1,
/**
* Requires that @returns tag has description value.
* @see https://github.com/gajus/eslint-plugin-jsdoc#require-returns-description
*/
'jsdoc/require-returns-description': 1,
/**
* Requires that @returns tag has type value.
* @see https://github.com/gajus/eslint-plugin-jsdoc#require-returns-type
*/
'jsdoc/require-returns-type': 1,
/**
* Requires all types to be valid JSDoc or Closure compiler types without syntax errors.
* @see https://github.com/gajus/eslint-plugin-jsdoc#valid-types
*/
'jsdoc/valid-types': 'off',
},
};