Skip to content

Commit 0f52b88

Browse files
committed
example svelte
1 parent fb0b1b0 commit 0f52b88

File tree

15 files changed

+2209
-0
lines changed

15 files changed

+2209
-0
lines changed

examples/svelte/.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Dependencies
2+
node_modules
3+
4+
# Build outputs
5+
dist
6+
*.local
7+
8+
# Svelte
9+
.svelte-kit
10+
11+
# Editor directories and files
12+
.vscode/*
13+
!.vscode/extensions.json
14+
!.vscode/settings.json
15+
.idea
16+
*.suo
17+
*.ntvs*
18+
*.njsproj
19+
*.sln
20+
*.sw?
21+
22+
# Logs
23+
logs
24+
*.log
25+
npm-debug.log*
26+
yarn-debug.log*
27+
yarn-error.log*
28+
pnpm-debug.log*
29+
lerna-debug.log*
30+
31+
# OS
32+
.DS_Store
33+
Thumbs.db

examples/svelte/eslint.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import eslintConfig from '@eslint-sets/eslint-config'
2+
3+
export default eslintConfig({
4+
svelte: true,
5+
typescript: true,
6+
})

examples/svelte/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Svelte Example</title>
7+
</head>
8+
<body>
9+
<div id="app"></div>
10+
<script type="module" src="/src/main.ts"></script>
11+
</body>
12+
</html>

examples/svelte/package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "eslint-sets-example-svelte",
3+
"type": "module",
4+
"version": "1.0.0",
5+
"private": true,
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"preview": "vite preview",
10+
"lint": "eslint .",
11+
"lint:fix": "eslint . --fix"
12+
},
13+
"devDependencies": {
14+
"@eslint-sets/eslint-config": "link:../..",
15+
"@sveltejs/vite-plugin-svelte": "^5.0.0",
16+
"eslint": "^9.22.0",
17+
"eslint-plugin-svelte": "^3.0.0",
18+
"svelte": "^5.25.0",
19+
"svelte-eslint-parser": "^1.0.0",
20+
"typescript": "^5.8.2",
21+
"vite": "^6.2.0"
22+
}
23+
}

0 commit comments

Comments
 (0)