-
Notifications
You must be signed in to change notification settings - Fork 41
/
eslint.config.js
45 lines (44 loc) · 1.08 KB
/
eslint.config.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
const js = require('@eslint/js');
const jsdoc = require('eslint-plugin-jsdoc');
const globals = require('globals');
/** @type {import('eslint').Linter.FlatConfig[]} */
module.exports = [
js.configs.recommended,
jsdoc.configs['flat/recommended'],
{
files: ["**/*.js", "**/*.html"],
languageOptions: {
globals: {
...globals.es6,
...globals.node,
RED: "readonly"
},
sourceType: "commonjs"
},
plugins: {
jsdoc: jsdoc,
},
settings: {
jsdoc: {
mode: "typescript"
}
},
rules: {
"indent": ["error", 4, {
"SwitchCase": 1
}],
"jsdoc/require-hyphen-before-param-description": 1,
"jsdoc/tag-lines": ["error", "any", {
"startLines": 1
}],
}
},
{
files: ["test/**/*.js"],
languageOptions: {
globals: {
...globals.mocha,
},
},
}
];