-
Notifications
You must be signed in to change notification settings - Fork 5
feature: CI/CD lint checks #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
87aa983
53ef3a2
3db8836
27faec0
85c30a1
83525f8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| name: ci-lint | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| - develop | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| - develop | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build-and-test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
| name: Install pnpm | ||
| with: | ||
| run_install: false | ||
|
|
||
| - name: Install Node.js | ||
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: .nvmrc | ||
| cache: 'pnpm' | ||
|
|
||
| - name: Install dependencies | ||
| shell: bash | ||
| run: pnpm install --frozen-lockfile --strict-peer-dependencies | ||
|
|
||
| - name: Run Linting and Formatting Check | ||
| run: pnpm run lint |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
|
|
||
| import type { Component, SvelteComponent } from 'svelte'; | ||
|
|
||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| export type AnyComponent = | ||
| | Component<any, any, any> | ||
| | (new (...args: any[]) => SvelteComponent<any, any, any>); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| /* eslint-disable-next-line @typescript-eslint/no-explicit-any */ | ||
| export type ChildrenFunc = () => any; |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,54 @@ | ||||||||||||||||||||||
| /* eslint-disable */ | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| import { goto } from '$app/navigation'; | ||||||||||||||||||||||
| import { base } from '$app/paths'; | ||||||||||||||||||||||
| import { page } from '$app/state'; | ||||||||||||||||||||||
| import type { Pathname } from '$app/types'; | ||||||||||||||||||||||
|
Comment on lines
+1
to
+6
|
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| export function unsafeResolve(path: Pathname) { | ||||||||||||||||||||||
|
||||||||||||||||||||||
| export function unsafeResolve(path: Pathname) { | |
| export function unsafeResolve(path: Pathname) { | |
| // Avoid double-prefixing when `path` already includes `base` | |
| if (!base || base === '/') { | |
| return path; | |
| } | |
| if (path === base || path.startsWith(base + '/')) { | |
| return path; | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File-level
/* eslint-disable svelte/no-navigation-without-resolve */disables the rule for the entire component, but the only unresolved navigation is the external link in the validation message. Prefer an inline disable on that<a>so internal navigation linting remains effective for future changes.