-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
37 lines (36 loc) · 1.04 KB
/
eslint.config.js
File metadata and controls
37 lines (36 loc) · 1.04 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
// CommonJS syntax instead of ESM
module.exports = [
{
ignores: ['[WIP]/**', 'lab/**', 'node_modules/**'],
// Environnements
languageOptions: {
ecmaVersion: 11,
sourceType: 'script',
globals: {
// browser: true
window: 'readonly',
document: 'readonly',
// greasemonkey: true
GM: 'readonly',
GM_addStyle: 'readonly',
GM_getValue: 'readonly',
GM_setValue: 'readonly',
GM_xmlhttpRequest: 'readonly',
unsafeWindow: 'readonly',
// jquery: true
$: 'readonly',
jQuery: 'readonly',
},
parserOptions: {
ecmaFeatures: {
globalReturn: true,
impliedStrict: true,
},
},
},
rules: {
eqeqeq: 'warn',
'linebreak-style': ['warn', 'unix'],
},
},
];