9
14
Fork
You've already forked website
20

Run lint and format:check via workflow (and fix lint and format issues) #224

Open
opened 2026年07月09日 00:03:29 +02:00 by bobidle · 0 comments
Contributor
Copy link

When running pnpm lint or pnpm format:check locally a lot of issues are shown.

e.g. pnpm format (prettier) produceses the following diff: #223/files

e.g. pnpm lint (eslint) shows the following issues:

> eslint .
/test/packages/admin/src/cms.tsx
 33:44 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
 68:34 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
 217:41 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
 247:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
 342:33 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
 374:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
/test/src/components/sections/FeaturedGuidesSection.astro
 10:11 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
/test/src/integrations/asset-manifest.js
 25:7 warning 'IMAGE_EXTENSIONS' is assigned a value but never used @typescript-eslint/no-unused-vars
/test/src/integrations/map-snapshot.ts
 187:19 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
 191:16 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
/test/src/layouts/GuideLayout.astro
 44:3 warning 'slug' is assigned a value but never used @typescript-eslint/no-unused-vars
 81:7 warning 'totalSteps' is assigned a value but never used @typescript-eslint/no-unused-vars
✖ 12 problems (0 errors, 12 warnings)

I would like to fix these issues and add pnpm lint and pnpm format:check to an existing workflow.

  1. Would that make any sense for the website?
  2. Does eslint or prettier need an additional config to fit to the current code style/format?
When running `pnpm lint` or `pnpm format:check` locally a lot of issues are shown. e.g. `pnpm format` (prettier) produceses the following diff: https://codeberg.org/DI-Day/website/pulls/223/files e.g. `pnpm lint` (eslint) shows the following issues: ``` > eslint . /test/packages/admin/src/cms.tsx 33:44 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 68:34 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 217:41 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 247:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 342:33 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 374:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /test/src/components/sections/FeaturedGuidesSection.astro 10:11 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /test/src/integrations/asset-manifest.js 25:7 warning 'IMAGE_EXTENSIONS' is assigned a value but never used @typescript-eslint/no-unused-vars /test/src/integrations/map-snapshot.ts 187:19 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 191:16 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /test/src/layouts/GuideLayout.astro 44:3 warning 'slug' is assigned a value but never used @typescript-eslint/no-unused-vars 81:7 warning 'totalSteps' is assigned a value but never used @typescript-eslint/no-unused-vars ✖ 12 problems (0 errors, 12 warnings) ``` I would like to fix these issues and add `pnpm lint` and `pnpm format:check` to an existing workflow. 1) Would that make any sense for the website? 2) Does eslint or prettier need an additional config to fit to the current code style/format?
Sign in to join this conversation.
No Branch/Tag specified
main
translations-pages
translations-faq
adjust-upcoming-event-windows
enable-hidden-translated-routes
signal-contacts
faq-i18n-fallback
feat/homepage-variants
chore/replace-decap-submodule-with-published-packages
citesting
No results found.
No labels
cms/draft
guide
WIP
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DI-Day/website#224
Reference in a new issue
DI-Day/website
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?