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
4 changes: 4 additions & 0 deletions webapp/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore artifacts:
build
coverage
node_modules
46 changes: 46 additions & 0 deletions webapp/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"arrowParens": "always",
"bracketSameLine": false,
"objectWrap": "preserve",
"bracketSpacing": true,
"semi": true,
"experimentalOperatorPosition": "end",
"experimentalTernaries": false,
"singleQuote": false,
"jsxSingleQuote": false,
"quoteProps": "as-needed",
"trailingComma": "all",
"singleAttributePerLine": true,
"htmlWhitespaceSensitivity": "css",
"vueIndentScriptAndStyle": false,
"proseWrap": "preserve",
"endOfLine": "lf",
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"embeddedLanguageFormatting": "auto",
"plugins": ["@trivago/prettier-plugin-sort-imports"],
"importOrder": [
"<BUILTIN_MODULES>",
"<THIRD_PARTY_MODULES>",
"^@/(.*)$",
"^@app/(.*)$",
"^@providers",
"^@providers/(.*)$",
"^@components",
"^@components/(.*)$",
Comment on lines +30 to +31
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Components might be lower in the FS Design

"^@widgets",
"^@widgets/(.*)$",
"^@assets",
"^@assets/(.*)$",
"^@pages",
"^@pages/(.*)$",
"^@ui",
"^@ui/(.*)$",
"[../]",
"[./]"
],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"importOrderCaseInsensitive": false
}
2 changes: 2 additions & 0 deletions webapp/eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";
import json from "@eslint/json";
import { defineConfig } from "eslint/config";
import pluginPrettier from "eslint-config-prettier/flat";

export default defineConfig([
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: globals.browser } },
Expand All @@ -27,4 +28,5 @@ export default defineConfig([
{ files: ["**/*.json"], plugins: { json }, language: "json/json", extends: ["json/recommended"] },
/** @ts-expect-error json plugin not typed well*/
{ files: ["**/*.jsonc"], plugins: { json }, language: "json/jsonc", extends: ["json/recommended"] },
pluginPrettier,
]);
133 changes: 133 additions & 0 deletions webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"build": "tsc -b && vite build",
"preview": "vite preview",
"check:arch": "node ./scripts/check-architecture.cjs",
"check:code": "npm run compile && npm run format && npm run lint",
"arch:tree": "node ./scripts/generate-tree.cjs ./src webappTree.md",
"compile": "tsc -b",
"format": "prettier . --write",
"format:check": "prettier . --check",
"lint": "eslint ./src",
"lint:fix": "eslint ./src --fix"
},
Expand Down Expand Up @@ -37,15 +41,18 @@
"@eslint/js": "^9.39.2",
"@eslint/json": "^1.0.0",
"@tailwindcss/vite": "^4.1.18",
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
"@types/chart.js": "^2.9.41",
"@types/node": "^24.10.1",
"@types/react": "^19.2.5",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.1",
"eslint": "^9.39.2",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-react": "^7.37.5",
"globals": "^17.2.0",
"jiti": "^2.6.1",
"prettier": "3.8.1",
"tailwind-merge": "^3.4.0",
"tailwindcss": "^4.1.18",
"tailwindcss-animate": "^1.0.7",
Expand Down