-
-
Notifications
You must be signed in to change notification settings - Fork 74
/
eslint.config.mjs
52 lines (51 loc) · 1.06 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
47
48
49
50
51
52
import ava from '@cto.af/eslint-config/ava.js';
import base from '@cto.af/eslint-config';
import globals from '@cto.af/eslint-config/globals.js';
import markdown from '@cto.af/eslint-config/markdown.js';
export default [
{
ignores: [
'packages/browserify-demo/dist/**',
'packages/cbor-bigdecimal/dist/**',
'packages/cbor-web/dist/**',
'packages/plain-demo/dist/**',
'packages/webpack-demo/dist/**',
'**/*.d.ts',
],
},
...base,
...markdown,
...ava,
{
files: [
'packages/cbor/lib/**',
'packages/cbor/test/**',
'packages/browserify-demo/src/**',
'packages/webpack-demo/src/**',
],
rules: {
'n/prefer-node-protocol': 'off',
},
},
{
files: [
'packages/cbor-cli/**',
],
rules: {
'no-console': 'off',
},
},
{
files: [
'packages/cbor-web/lib/**',
'packages/parcel-demo/src/**',
],
languageOptions: {
sourceType: 'module',
globals: globals.browser,
},
rules: {
'n/prefer-node-protocol': 'off',
},
},
];