diff --git a/.cspell.json b/.cspell.json index 3e21d466..054c658e 100644 --- a/.cspell.json +++ b/.cspell.json @@ -9,7 +9,8 @@ ".gemini/**", ".vscode/**", ".cspell.json", - "**/go.sum" + "**/go.sum", + "**/*.svg" ], "dictionaryDefinitions": [ { diff --git a/.cspell/custom-words.txt b/.cspell/custom-words.txt index ce73c361..4aada16f 100644 --- a/.cspell/custom-words.txt +++ b/.cspell/custom-words.txt @@ -185,3 +185,6 @@ XVCJ Yapily Zalopay Zalora +Sublabel +sublabel +dedup diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index fea1b9c1..7150890c 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -4,26 +4,33 @@ on: pull_request: branches: [main] +permissions: {} + jobs: build: name: Lint Code Base runs-on: ubuntu-latest + permissions: + contents: read + packages: read + statuses: write steps: - name: Checkout Code - uses: actions/checkout@v5 + uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 with: fetch-depth: 0 + persist-credentials: false - name: Lint Code Base - uses: super-linter/super-linter/slim@v8 + uses: super-linter/super-linter/slim@4ce20838b8ab83717e78138c5b3a1407148e0918 # v8.7.0 env: DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LOG_LEVEL: WARN SHELLCHECK_OPTS: -e SC1091 -e 2086 VALIDATE_ALL_CODEBASE: false - FILTER_REGEX_EXCLUDE: "^(\\.github/|\\.vscode/|code/samples/).*|CODE_OF_CONDUCT.md|CHANGELOG.md" + FILTER_REGEX_EXCLUDE: "^(\\.github/|\\.vscode/|code/samples/).*|(^|/)code/web-client/|CODE_OF_CONDUCT.md|CHANGELOG.md" VALIDATE_BIOME_FORMAT: false VALIDATE_PYTHON_BLACK: false VALIDATE_PYTHON_FLAKE8: false diff --git a/code/web-client/src/App.tsx b/code/web-client/src/App.tsx index a6ddb758..4de73ffc 100644 --- a/code/web-client/src/App.tsx +++ b/code/web-client/src/App.tsx @@ -25,7 +25,7 @@ const AppHeader = ({usedServers}: {usedServers: Set}) => { }, ]; - const flow = (import.meta as any).env?.VITE_FLOW; + const flow = (import.meta as ImportMeta & {env?: Record}).env?.VITE_FLOW; return (
@@ -68,12 +68,12 @@ const TabBar = ({ mandateCount: number; }) => (
- -
{sd.disclosures.map((d, i) => ( + // biome-ignore lint/suspicious/noArrayIndexKey: static list, never reordered
{truncate(d.salt, 18)} diff --git a/code/web-client/src/components/MessageRenderer.tsx b/code/web-client/src/components/MessageRenderer.tsx index afaf4e55..6e7d6fd8 100644 --- a/code/web-client/src/components/MessageRenderer.tsx +++ b/code/web-client/src/components/MessageRenderer.tsx @@ -126,7 +126,7 @@ export const MessageRenderer = ({ : undefined; return (
- {proseText && proseText.trim() && } + {proseText?.trim() && }
); @@ -183,7 +183,7 @@ export const MessageRenderer = ({ return (
- {proseText && proseText.trim() && } + {proseText?.trim() && } )} {onCheckNow && ( - )} diff --git a/code/web-client/src/components/ReceiptCard.tsx b/code/web-client/src/components/ReceiptCard.tsx index 5a61a6f6..9fc96485 100644 --- a/code/web-client/src/components/ReceiptCard.tsx +++ b/code/web-client/src/components/ReceiptCard.tsx @@ -42,7 +42,7 @@ export function ReceiptCard({ purchase, itemName }: Props) {
- +
- +