Skip to content

Commit 1dbd71f

Browse files
committed
fix vercel
1 parent bf123a9 commit 1dbd71f

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

docs/vercel/.eslintrc.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,21 @@
55
},
66
"parser": "@typescript-eslint/parser",
77
"parserOptions": {
8-
"ecmaVersion": 2019,
8+
"ecmaVersion": 2021,
99
"sourceType": "module"
1010
},
11-
"plugins": ["svelte3", "@typescript-eslint"],
12-
"extends": ["eslint:recommended"],
11+
"plugins": ["@typescript-eslint"],
12+
"extends": ["plugin:svelte/recommended"],
1313
"overrides": [
1414
{
15-
"files": ["**/*.svelte"],
16-
"processor": "svelte3/svelte3"
15+
"files": ["*.svelte"],
16+
"parser": "svelte-eslint-parser",
17+
"parserOptions": {
18+
"parser": "@typescript-eslint/parser"
19+
}
1720
}
1821
],
19-
"settings": {
20-
"svelte3/typescript": true
22+
"rules": {
23+
"svelte/no-at-html-tags": "off"
2124
}
2225
}

docs/vercel/.prettierrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"trailingComma": "es5",
77
"bracketSameLine": true,
88
"singleAttributePerLine": false,
9-
"quoteProps": "consistent"
9+
"quoteProps": "consistent",
10+
"plugins": ["prettier-plugin-svelte"]
1011
}

docs/vercel/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

docs/vercel/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import Index from './Index.svelte';
33
const targetElement = document.getElementById('app');
44

55
if (!targetElement) {
6-
throw new Error("Couldn't find the 'app' element!");
6+
throw new Error("Couldn't find the 'app' element!");
77
}
88

99
const app = new Index({
10-
target: targetElement,
10+
target: targetElement,
1111
});
1212

1313
export default app;

0 commit comments

Comments
 (0)