-
-
Notifications
You must be signed in to change notification settings - Fork 2k
/
eslint.config.js
45 lines (44 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
import svelte_config from '@sveltejs/eslint-config';
/** @type {import('eslint').Linter.Config[]} */
export default [
...svelte_config,
{
rules: {
'no-undef': 'off'
}
},
{
ignores: [
'**/.svelte-kit',
'**/test-results',
'**/build',
'**/.custom-out-dir',
'packages/adapter-*/files'
]
},
{
languageOptions: {
parserOptions: {
project: true
}
},
rules: {
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/require-await': 'error'
},
ignores: [
'packages/adapter-node/rollup.config.js',
'packages/adapter-node/tests/smoke.spec.js',
'packages/adapter-static/test/apps/**/*',
'packages/create-svelte/shared/**/*',
'packages/create-svelte/templates/**/*',
'packages/kit/src/core/sync/create_manifest_data/test/samples/**/*',
'packages/kit/test/apps/**/*',
'packages/kit/test/build-errors/**/*',
'packages/kit/test/prerendering/**/*',
'packages/package/test/errors/**/*',
'packages/package/test/fixtures/**/*'
]
}
];