-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheslint.config.mjs
More file actions
41 lines (39 loc) · 951 Bytes
/
eslint.config.mjs
File metadata and controls
41 lines (39 loc) · 951 Bytes
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
import { defineConfig, globalIgnores } from 'eslint/config';
import { globals } from 'eslint-config-zakodium';
import js from 'eslint-config-zakodium/js';
export default defineConfig(
globalIgnores([
'node_modules',
'build',
// Ignore third-party libraries
'tiles/font-awesome',
'util/aesjs.js',
'util/cloneDeepLimitArray.js',
'util/md5.js',
'util/yamlParser.js',
'spectra-data/conrec.js',
]),
{
languageOptions: {
globals: {
define: 'readonly',
module: 'writable',
require: 'readonly',
DataObject: 'readonly',
$: 'readonly',
...globals.browser,
...globals.jest,
},
},
},
js,
{
rules: {
'import/no-extraneous-dependencies': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'no-await-in-loop': 'off',
'prefer-named-capture-group': 'off',
},
},
);