-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheslint.config.mjs
More file actions
40 lines (39 loc) · 1.13 KB
/
eslint.config.mjs
File metadata and controls
40 lines (39 loc) · 1.13 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
import globals from 'globals';
import pluginJs from '@eslint/js';
import jsdoc from 'eslint-plugin-jsdoc';
export default [
jsdoc.configs['flat/recommended'],
pluginJs.configs.recommended,
{
files: ['**/*.js'],
languageOptions: { sourceType: 'module' },
plugins: {
jsdoc,
},
rules: {
// "jsdoc/check-examples": 1,
'jsdoc/check-indentation': 1,
'jsdoc/check-line-alignment': 1,
'jsdoc/check-syntax': 1,
// "jsdoc/informative-docs": 1,
'jsdoc/match-description': 1,
'jsdoc/no-bad-blocks': 1,
'jsdoc/no-blank-block-descriptions': 1,
'jsdoc/no-defaults': 0,
// "jsdoc/no-missing-syntax": 1,
// "jsdoc/no-restricted-syntax": 1,
// "jsdoc/no-types": 1,
'jsdoc/require-asterisk-prefix': 1,
'jsdoc/require-description': 1,
'jsdoc/require-description-complete-sentence': 1,
'jsdoc/require-example': 1,
// "jsdoc/require-file-overview": 1,
'jsdoc/require-hyphen-before-param-description': 1,
'jsdoc/require-throws': 1,
'jsdoc/sort-tags': 1,
},
},
{
languageOptions: { globals: globals.node },
},
];