forked from kitschpatrol/shared-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.ts
49 lines (48 loc) · 1.1 KB
/
eslint.config.ts
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
import { eslintConfig } from '@envsa/eslint-config';
export default eslintConfig(
{
svelte: true,
ignores: [
'bin/',
'packages/eslint-config/src/typegen.d.ts',
'test/fixtures/input/*',
'test/fixtures/output-fixed-auto/*',
],
ts: {
overrides: {
'depend/ban-dependencies': [
'error',
{
allowed: ['fs-extra', 'execa'],
},
],
},
},
type: 'lib',
},
{
files: ['packages/eslint-config/src/presets/**.*'],
rules: {
'ts/naming-convention': 'off',
'unicorn/no-null': 'off',
},
},
{
files: ['packages/eslint-config/src/configs/**.*'],
rules: {
'ts/require-await': 'off',
'unicorn/no-null': 'off',
},
},
{
// Ignore template package.json fragment files
files: ['packages/*/init/package.json'],
rules: {
'json-package/require-author': 'off',
'json-package/require-keywords': 'off',
'json-package/require-name': 'off',
'json-package/require-version': 'off',
'json-package/valid-package-definition': 'off',
},
},
);