-
Notifications
You must be signed in to change notification settings - Fork 181
Expand file tree
/
Copy patheslint.config.js
More file actions
44 lines (39 loc) · 875 Bytes
/
eslint.config.js
File metadata and controls
44 lines (39 loc) · 875 Bytes
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
import svelteConfig from './svelte.config.js'
import { defineConfig } from 'eslint/config'
import svelte from 'eslint-plugin-svelte'
import ts from 'typescript-eslint'
import globals from 'globals'
import js from '@eslint/js'
export default defineConfig([
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
}
}
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
projectService: true,
extraFileExtensions: ['.svelte'],
parser: ts.parser,
svelteConfig
}
}
},
{
ignores: ['tests/__data__/**', 'docs/**', '.svelte-kit/**']
},
{
rules: {
'svelte/no-navigation-without-resolve': 'off',
'svelte/no-at-html-tags': 'off'
}
}
])