forked from gajus/eslint-config-canonical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsdoc.js
61 lines (61 loc) · 1.84 KB
/
jsdoc.js
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
module.exports.recommended = {
files: ['**/*.{js,jsx,cjs,mjs,ts,tsx}'],
plugins: {
jsdoc: require('eslint-plugin-jsdoc'),
},
rules: {
'jsdoc/check-access': 2,
'jsdoc/check-alignment': 2,
'jsdoc/check-examples': 0,
'jsdoc/check-indentation': 0,
'jsdoc/check-line-alignment': 0,
'jsdoc/check-param-names': 2,
'jsdoc/check-property-names': 2,
'jsdoc/check-syntax': 2,
'jsdoc/check-tag-names': 2,
'jsdoc/check-types': 2,
'jsdoc/check-values': 2,
'jsdoc/empty-tags': 2,
'jsdoc/implements-on-classes': 2,
'jsdoc/match-description': 0,
'jsdoc/match-name': 0,
'jsdoc/multiline-blocks': [
2,
{
noMultilineBlocks: false,
noSingleLineBlocks: true,
},
],
'jsdoc/no-bad-blocks': 2,
'jsdoc/no-defaults': 2,
'jsdoc/no-missing-syntax': 0,
'jsdoc/no-multi-asterisks': 2,
'jsdoc/no-restricted-syntax': 0,
'jsdoc/no-types': 0,
'jsdoc/no-undefined-types': 2,
'jsdoc/require-asterisk-prefix': 2,
'jsdoc/require-description': 0,
'jsdoc/require-description-complete-sentence': 0,
'jsdoc/require-example': 0,
'jsdoc/require-file-overview': 0,
'jsdoc/require-hyphen-before-param-description': 0,
'jsdoc/require-jsdoc': 0,
'jsdoc/require-param': 0,
'jsdoc/require-param-description': 0,
'jsdoc/require-param-name': 2,
'jsdoc/require-param-type': 0,
'jsdoc/require-property': 2,
'jsdoc/require-property-description': 2,
'jsdoc/require-property-name': 2,
'jsdoc/require-property-type': 2,
'jsdoc/require-returns': 0,
'jsdoc/require-returns-check': 0,
'jsdoc/require-returns-description': 0,
'jsdoc/require-returns-type': 0,
'jsdoc/require-throws': 0,
'jsdoc/require-yields': 0,
'jsdoc/require-yields-check': 0,
'jsdoc/tag-lines': [2, 'never'],
'jsdoc/valid-types': 2,
},
};