forked from pablo-abc/svelte-markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
40 lines (39 loc) · 974 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
39
40
import globals from "globals"
import pluginJs from "@eslint/js"
import svelteParser from 'svelte-eslint-parser'
import sveltePlugin from 'eslint-plugin-svelte'
export default [
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
{
name: 'Frankie WebApp',
ignores: [
'vite.config.js.*',
'more.eslint.config.js',
],
},
{
name: 'Svelte files',
files: [
'src/**/*.svelte',
'src/routes/**/*page.js',
'src/routes/**/*layout.js',
],
languageOptions: {
parser: svelteParser,
globals: {...globals.browser},
},
plugins: {
// '@stylistic/js': stylisticJs,
svelte: sveltePlugin,
},
rules: {
// ...pluginJs.configs.recommended.rules,
// ...recommended.rules,
// '@stylistic/js/max-len': ['warn', {code: 250}],
'no-undefined': 'off',
'svelte/no-at-html-tags': 'off',
'svelte/valid-compile': 'off',
},
},
]