-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
.eslintrc
42 lines (42 loc) · 1.35 KB
/
.eslintrc
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
{
"globals": {
"launchQueue": "readonly",
"FileSystemHandle": "readonly",
"FileSystemFileHandle": "readonly",
"FileSystemDirectoryHandle": "readonly",
"FileSystemWritableFileStream": "readonly",
"ClipboardItem": "readonly",
"queryLocalFonts": "readonly"
},
"env": {
"es2022": true,
"browser": true,
"worker": true,
"node": true,
"serviceworker": true
},
"rules": {
"n/no-callback-literal": 0
},
"extends": ["plugin:svelte/recommended", "standard"],
"plugins": ["svelte"],
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["*.min.*", "*.build.*"],
"overrides": [
{
"files": ["*.svelte"],
"parser": "svelte-eslint-parser",
"rules": {
"svelte/indent": ["error", { "indent": 2, "indentScript": true }],
"no-self-assign": 0,
"a11y-media-has-caption": 0,
"no-use-before-define": 0,
"svelte/html-self-closing": ["error", "always"],
"svelte/html-closing-bracket-spacing": ["error", { "startTag": "never", "endTag": "never", "selfClosingTag": "always" }],
"svelte/html-quotes": [ "error", { "prefer": "single", "dynamic": { "quoted": false, "avoidInvalidUnquotedInHTML": false } }],
"svelte/shorthand-attribute": ["warn", { "prefer": "always" }],
"svelte/spaced-html-comment": ["error", "always"]
}
}
]
}