-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy patheslint.config.mjs
60 lines (59 loc) · 1.25 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
53
54
55
56
57
58
59
60
import antfu from '@antfu/eslint-config'
export default antfu({
svelte: true,
typescript: true,
rules: {
'svelte/html-quotes': [
'error',
{
prefer: 'double',
dynamic: {
quoted: false,
avoidInvalidUnquotedInHTML: false,
},
},
],
},
ignores: [
'node_modules',
'/build',
'/.svelte-kit',
'/package',
'.env',
'.env.*',
'!.env.example',
'pnpm-lock.yaml',
'package-lock.json',
'yarn.lock',
'types-template.ts',
'packages/twoslash/__tests__/test.svelte',
'packages/twoslash/src/twoslash-svelte/types-template.d.ts',
'*.md',
'**/__tests__/**/*.svelte',
'**/__tests__/**/*.json',
'**/__tests__/**/*.tsx',
'**/.sveltepress/**/*',
],
}, {
files: ['**/*.svelte'],
rules: {
'prefer-const': 'off',
'antfu/if-newline': 'off',
'style/operator-linebreak': 'off',
'style/brace-style': 'off',
'svelte/indent': 'off',
},
}, {
files: ['packages/create/template-*/**/*'],
rules: {
'style/indent': ['error', 'tab'],
'style/no-tabs': 'off',
'style/eol-last': 'off',
},
}, {
files: ['packages/docs-site*/**/*'],
rules: {
'unused-imports/no-unused-vars': 'off',
'no-unused-vars': 'off',
},
})