Skip to content

Commit 681cee2

Browse files
committed
Use jsdoc rules we have in esllint-config-tree and only have it for js/html files
1 parent 0ace38c commit 681cee2

File tree

1 file changed

+26
-28
lines changed

1 file changed

+26
-28
lines changed

jsdoc.js

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
11
module.exports = {
22
plugins: ['jsdoc'],
3-
rules: {
4-
'jsdoc/check-alignment': 'warn',
5-
'jsdoc/check-examples': 'warn',
6-
'jsdoc/check-indentation': 'off',
7-
'jsdoc/check-param-names': 'warn',
8-
'jsdoc/check-syntax': 'warn',
9-
'jsdoc/check-tag-names': 'warn',
10-
'jsdoc/check-types': 'warn',
11-
'jsdoc/implements-on-classes': 'warn',
12-
'jsdoc/match-description': 'warn',
13-
'jsdoc/newline-after-description': 'off',
14-
'jsdoc/no-types': 'off',
15-
'jsdoc/no-undefined-types': 'warn',
16-
'jsdoc/require-description-complete-sentence': 'off',
17-
'jsdoc/require-description': 'warn',
18-
'jsdoc/require-example': 'off',
19-
'jsdoc/require-hyphen-before-param-description': 'warn',
20-
'jsdoc/require-jsdoc': 'warn',
21-
'jsdoc/require-param-description': 'warn',
22-
'jsdoc/require-param-name': 'warn',
23-
'jsdoc/require-param-type': 'warn',
24-
'jsdoc/require-param': 'warn',
25-
'jsdoc/require-returns-check': 'warn',
26-
'jsdoc/require-returns-description': 'warn',
27-
'jsdoc/require-returns-type': 'warn',
28-
'jsdoc/require-returns': 'warn',
29-
'jsdoc/valid-types': 'warn',
30-
},
3+
overrides: [
4+
{
5+
files: ['*.js?(x)', '*.html'],
6+
rules: {
7+
'valid-jsdoc': 'warn',
8+
'jsdoc/check-alignment': 'warn',
9+
'jsdoc/check-param-names': 'warn',
10+
'jsdoc/check-syntax': 'warn',
11+
'jsdoc/check-tag-names': 'warn',
12+
'jsdoc/check-types': 'warn',
13+
'jsdoc/implements-on-classes': 'warn',
14+
'jsdoc/match-description': 'warn',
15+
'jsdoc/require-description': 'warn',
16+
'jsdoc/require-hyphen-before-param-description': 'warn',
17+
'jsdoc/require-param-description': 'warn',
18+
'jsdoc/require-param-name': 'warn',
19+
'jsdoc/require-param-type': 'warn',
20+
'jsdoc/require-param': 'warn',
21+
'jsdoc/require-returns-check': 'warn',
22+
'jsdoc/require-returns-description': 'warn',
23+
'jsdoc/require-returns-type': 'warn',
24+
'jsdoc/require-returns': 'warn',
25+
'jsdoc/valid-types': 'warn',
26+
},
27+
},
28+
],
3129
}

0 commit comments

Comments
 (0)