forked from sveltejs/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
38 lines (37 loc) · 850 Bytes
/
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
// @ts-expect-error
import svelte_config from '@sveltejs/eslint-config';
/** @type {import('eslint').Linter.Config[]} */
export default [
...svelte_config,
{
rules: {
'no-undef': 'off'
}
},
{
languageOptions: {
parserOptions: {
// use the nearest tsconfig from the source or fallback to the root
project: ['packages/**/tsconfig.json', 'tsconfig.json']
}
},
rules: {
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/require-await': 'error'
}
},
{
ignores: [
'packages/create/shared/**/*',
'packages/create/scripts/**/*',
'packages/create/templates/**/*',
'**/temp/*',
'**/.test-output/*',
'**/dist/*',
'packages/**/tests/**/{output,input}.ts',
'rollup.config.js',
'community-addon-template/tests/*'
]
}
];