-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
eslint.config.js
62 lines (61 loc) · 1.22 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import base from '@cto.af/eslint-config';
import globals from '@cto.af/eslint-config/globals.js';
import jsdoc_ts from '@cto.af/eslint-config/jsdoc_ts.js';
import markdown from '@cto.af/eslint-config/markdown.js';
import mod from '@cto.af/eslint-config/module.js';
import ts from '@cto.af/eslint-config/ts.js';
export default [
{
ignores: [
'lib/**',
'web/dist/**',
'dcbor-test-vectors/**',
'web/playwright-report/**',
'web/test-results/**',
],
},
...base,
...mod,
...ts,
...jsdoc_ts,
...markdown,
{
files: [
'src/**.ts',
],
rules: {
// Lots of wrapper-object processing in this lib.
'@typescript-eslint/no-wrapper-object-types': 'off',
},
},
{
files: [
'**/*.md/*.js',
],
rules: {
'no-new-wrappers': 'off',
},
},
{
files: [
'web/**/*.js',
],
rules: {
'n/file-extension-in-import': 'off',
'n/no-unsupported-features/node-builtins': 'off',
},
languageOptions: {
globals: globals.browser,
},
},
{
files: [
'examples/**',
],
rules: {
'n/file-extension-in-import': 'off',
'n/no-missing-import': 'off',
'no-console': 'off',
},
},
];