-
Notifications
You must be signed in to change notification settings - Fork 34
/
eslint.config.js
56 lines (51 loc) · 1.05 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
const tsParser = require('@typescript-eslint/parser');
const skuba = require('eslint-config-skuba');
module.exports = [
{
ignores: [
'integration/base/',
'integration/format/',
'template/',
'packages/**/*/lib*/',
],
},
...skuba,
{
rules: {
'no-process-exit': 'off',
},
},
{
files: ['integration/**/*.{ts,cts,mts,tsx}'],
languageOptions: {
parser: tsParser,
ecmaVersion: 5,
sourceType: 'script',
parserOptions: {
allowAutomaticSingleRunInference: false,
},
},
},
{
files: ['src/**/*.{ts,cts,mts,tsx}'],
rules: {
'no-restricted-imports': [
'error',
{
paths: [
{
name: 'fs',
message:
'Prefer fs-extra as it implements graceful-fs behaviour.',
},
{
name: 'fs/promises',
message:
'Prefer fs-extra as it implements graceful-fs behaviour.',
},
],
},
],
},
},
];