Skip to content
Open
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
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@
*.pyd
*.pyc
**/__pycache__/
**/node_modules/
/refl1d/webview/client/dist/
*.swp
*.so
*.bak
refl1d-webview-client*.tgz
bumps-webview-client*.tgz
/build/
/dist/
/refl1d.egg-info/
Expand Down Expand Up @@ -61,8 +57,6 @@ venv.bak/
*.swp
*.bak

test-files/

# Unused lock files
bun.lock
uv.lock
9 changes: 5 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
repos:
- repo: local
hooks:
- id: eslint
name: eslint
entry: bash -c "cd refl1d/webview/client && npm run lint"
- id: frontend-lint
name: frontend-lint
entry: bash -c "cd refl1d/webview/client && npm run lint || bun run lint || exit 1"
language: system
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
Expand All @@ -24,4 +24,5 @@ repos:

ci:
autoupdate_schedule: monthly
skip: [eslint]
skip: [frontend-lint]

5 changes: 5 additions & 0 deletions refl1d/webview/client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bumps-webview-client*.tgz
refl1d-webview-client*.tgz
bun.lock
dist/
node_modules/
39 changes: 39 additions & 0 deletions refl1d/webview/client/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
"includes": ["**", "!**/*.css", "!**/*.scss"]
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 120,
"attributePosition": "auto",
"bracketSameLine": false,
"bracketSpacing": true,
"expand": "auto",
"useEditorconfig": true
},
"linter": {
"enabled": true,
"domains": {
"vue": "recommended"
},
"rules": {
"recommended": true
}
},
"html": { "formatter": { "selfCloseVoidElements": "always" } },
"assist": {
"enabled": true,
"actions": { "source": { "organizeImports": "on" } }
}
}
17 changes: 3 additions & 14 deletions refl1d/webview/client/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import url from "url";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import pluginVue from "eslint-plugin-vue";
import url from "node:url";
import { FlatCompat } from "@eslint/eslintrc";
import js from "@eslint/js";
import prettierConfig from "@vue/eslint-config-prettier";
import vueTsEslintConfig from "@vue/eslint-config-typescript";
import pluginVue from "eslint-plugin-vue";

const __dirname = url.fileURLToPath(new URL(".", import.meta.url));
const compat = new FlatCompat({
Expand All @@ -15,11 +13,9 @@ const compat = new FlatCompat({

export default [
/** Extend recommended configs */
...compat.extends("plugin:vue/vue3-recommended", "plugin:vuejs-accessibility/recommended", "prettier"),
...compat.extends("plugin:vue/recommended", "plugin:vuejs-accessibility/recommended"),
...pluginVue.configs["flat/recommended"],
...vueTsEslintConfig(),
eslintPluginPrettierRecommended,
prettierConfig,
/** Configuration */
{
languageOptions: {
Expand All @@ -39,13 +35,6 @@ export default [
"error",
{ allowShortCircuit: true, allowTernary: true }, // Temporary fix for indirect dependency @typescript-eslint <= 8.15.0
],
"prettier/prettier": [
"warn",
{},
{
usePrettierrc: true,
},
],
"vuejs-accessibility/label-has-for": [
"error",
{
Expand Down
47 changes: 20 additions & 27 deletions refl1d/webview/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "refl1d-webview-client",
"version": "0.1.26",
"version": "0.1.27",
"type": "module",
"repository": {
"type": "git",
Expand All @@ -12,44 +12,37 @@
"build": "vite build --emptyOutDir -m development",
"build_prod": "vite build --emptyOutDir -m production",
"preview": "vite preview --port 4173",
"format": "prettier --write src",
"format": "biome format --write",
"lint": "eslint src --fix",
"test:lint": "eslint src",
"test:types": "vue-tsc --noEmit --skipLibCheck -p tsconfig.json --composite false"
},
"dependencies": {
"@msgpack/msgpack": "^3.1.2",
"bootstrap": "^5.3.7",
"bootstrap": "^5.3.8",
"date-fns": "^4.1.0",
"json-difference": "^1.16.1",
"mpld3": "^0.5.10",
"plotly.js": "^3.0.1",
"mpld3": "^0.5.12",
"plotly.js": "^3.3.0",
"socket.io-client": "^4.8.1",
"uuid": "^11.1.0",
"vue": "^3.5.17",
"vue-json-pretty": "^2.5.0"
"uuid": "^13.0.0",
"vue": "^3.5.25",
"vue-json-pretty": "^2.6.0"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
"@tsconfig/node-lts": "^22.0.2",
"@types/node": "^24.5.2",
"@types/plotly.js": "^2.35.1",
"@types/uuid": "^10.0.0",
"@vitejs/plugin-vue": "^5.2.1",
"@vue/eslint-config-prettier": "10.1.0",
"@vue/eslint-config-typescript": "^14.2.0",
"@vue/tsconfig": "^0.7.0",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-vue": "^9.32.0",
"@tsconfig/node-lts": "^24.0.0",
"@types/node": "^24.10.1",
"@types/plotly.js": "^3.0.8",
"@vitejs/plugin-vue": "^6.0.2",
"@vue/eslint-config-typescript": "^14.6.0",
"@vue/tsconfig": "^0.8.1",
"@biomejs/biome": "^2.3.8",
"eslint": "^9.39.1",
"eslint-plugin-vue": "^10.6.2",
"eslint-plugin-vuejs-accessibility": "^2.4.1",
"prettier": "^3.4.2",
"prettier-plugin-css-order": "^2.1.2",
"prettier-plugin-jsdoc": "^1.3.2",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"typescript": "^5.9.3",
"vite": "^7.2.6",
"vite-svg-loader": "5.1.0",
"vue-tsc": "^2.2.0"
"vue-tsc": "^3.1.5"
}
}
48 changes: 0 additions & 48 deletions refl1d/webview/client/prettier.config.js

This file was deleted.

Loading
Loading