Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- name: Install dependencies
run: cd frontend && npm ci

- name: Lint & format check
run: cd frontend && npm run lint

- name: Run tests
run: cd frontend && npm test

Expand Down
2 changes: 2 additions & 0 deletions frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
node_modules/
11 changes: 11 additions & 0 deletions frontend/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"plugins": ["prettier-plugin-svelte"],
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
}
30 changes: 30 additions & 0 deletions frontend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import js from "@eslint/js";
import ts from "typescript-eslint";
import svelte from "eslint-plugin-svelte";
import prettier from "eslint-config-prettier";

export default ts.config(
{ ignores: ["dist/", "node_modules/"] },

js.configs.recommended,
...ts.configs.recommended,
...svelte.configs["flat/recommended"],

{
files: ["**/*.svelte"],
languageOptions: {
parserOptions: {
parser: ts.parser,
},
},
rules: {
// TypeScript handles undefined-variable checking; no-undef doesn't
// understand TS globals (DOM types, setTimeout, etc.)
"no-undef": "off",
},
},

// Disable rules that conflict with Prettier (must be last)
prettier,
...svelte.configs["flat/prettier"],
);
10 changes: 8 additions & 2 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>mcpplay</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect width='100' height='100' rx='20' fill='%2318181b'/><text x='50' y='68' font-size='52' text-anchor='middle' fill='white' font-family='system-ui'>&#x26A1;</text></svg>" />
<meta name="description" content="mcpplay - The playground for MCP servers" />
<link
rel="icon"
href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect width='100' height='100' rx='20' fill='%2318181b'/><text x='50' y='68' font-size='52' text-anchor='middle' fill='white' font-family='system-ui'>&#x26A1;</text></svg>"
/>
<meta
name="description"
content="mcpplay - The playground for MCP servers"
/>
<meta name="theme-color" content="#18181b" />
</head>
<body>
Expand Down
Loading