Add Typescript specific linting & define files in eslint #1378

Closed
opened 2026-04-05 19:16:32 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @thijsvanloef on 6/9/2025

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

I was thinking about adding a eslinter to the github actions as well, however came across an error the existing eslint.config.js.
As there are no files defined in the eslint.config.js the linter will not actually run any of its checks on the typescript files.
Further, the linter was not checking typescript specific recommended rules.

If wanted, I can also add automated linting via github actions that run on every PR.

Feel free to close this PR if this is not needed/wanted.

How to test?

  1. Clone the repository
  2. Run npx eslint
  3. See that there are linting errors found:
    image
*Originally created by @thijsvanloef on 6/9/2025* ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description I was thinking about adding a eslinter to the github actions as well, however came across an error the existing `eslint.config.js`. As there are no files defined in the `eslint.config.js` the linter will not actually run any of its checks on the typescript files. Further, the linter was not checking typescript specific recommended rules. If wanted, I can also add automated linting via github actions that run on every PR. Feel free to close this PR if this is not needed/wanted. ## How to test? 1. Clone the repository 2. Run `npx eslint` 3. See that there are linting errors found: ![image](https://github.com/user-attachments/assets/45069c44-83ef-4016-bc2c-3adad67b1310)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1378