-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy patheslint.config.mjs
46 lines (43 loc) · 1.03 KB
/
eslint.config.mjs
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
import js from "@eslint/js";
import jsdoc from "eslint-plugin-jsdoc";
export default [
js.configs.recommended,
jsdoc.configs['flat/recommended'],
{
plugins: {
jsdoc,
},
languageOptions: {
ecmaVersion: 2020,
sourceType: "module",
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
OpenLayers: "readonly",
lizMap: "readonly",
lizDict: "readonly",
lizUrls: "readonly",
lizProj4: "readonly",
window: "readonly",
document: "readonly",
HTMLElement: "readonly",
Node: "readonly",
console: "readonly",
setTimeout: "readonly",
clearTimeout: "readonly",
Event: "readonly",
$: "readonly",
jQuery: "readonly",
},
},
rules: {
"indent": ["error", 4, {
"SwitchCase": 1,
"ignoredNodes": ["TemplateLiteral *"],
}],
"no-prototype-builtins": "off",
"no-undef": "off",
'jsdoc/require-description': 'warn',
},
},
];