forked from EsupPortail/Esup-Pod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
54 lines (54 loc) · 1.26 KB
/
.eslintrc.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
module.exports = {
"env": {
"browser": true,
"commonjs": false,
"es2021": true,
"node": false
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "script"
},
"rules": {
"indent": [
"error",
2,
{"SwitchCase": 1}
],
"linebreak-style": [
"error",
"unix"
],
"semi": [
"error",
"always",
],
/*"camelcase": ["warn", {"ignoreGlobals": true}],*/
/* First capital letter is reserved for "new" Objects. */
"new-cap": ["warn", { "capIsNew": true }]
},
/* functions and Objects that will not trigger a "not defined" error. */
"globals": {
"require": true,
"process": true,
"Cookies": "readonly",
"gettext": "readonly",
"ngettext": "readonly",
"interpolate": "readonly",
"bootstrap": "readonly",
"videojs": "readonly",
"CKEDITOR": "readonly",
"send_form_data": "writable",
"showalert": "writable",
"showLoader": "writable",
"manageDisableBtn": "writable"
},
overrides: [
{
// Allow use of import & export functions
files: [ "pod/main/static/js/utils.js", "pod/video/static/js/regroup_videos_by_theme.js" ],
parserOptions: { sourceType: "module" },
}
]
};