Skip to content

Lint tests, format JSON#818

Merged
danditomaso merged 1 commit into
meshtastic:mainfrom
philon-:biome-changes
Aug 31, 2025
Merged

Lint tests, format JSON#818
danditomaso merged 1 commit into
meshtastic:mainfrom
philon-:biome-changes

Conversation

@philon-

@philon- philon- commented Aug 31, 2025

Copy link
Copy Markdown
Contributor

Description

This PR adds linting for test files, with exceptions for noExplicitAny and noNonNullAssertion, and automatic formatting for all JSON files except non english language files (matching **/locales/*-*/*.json)

Related Issues

Changes Made

  • Added linting overrides to files matching **/*.test.ts and **/*.test.tsx in Biome config
  • Added **/*.json include in Biome config
  • Added **/locales/*-*/*.json exclusion in Biome config
  • Changed affected files to pass linting / format checks

Testing Done

Automated tests pass

Screenshots (if applicable)

Checklist

  • Code follows project style guidelines
  • Documentation has been updated or added
  • Tests have been added or updated
  • All i18n translation labels have been added (read
    CONTRIBUTING_I18N_DEVELOPER_GUIDE.md for more details)

Copilot AI review requested due to automatic review settings August 31, 2025 18:39
@vercel

vercel Bot commented Aug 31, 2025

Copy link
Copy Markdown

@philon- is attempting to deploy a commit to the Meshtastic Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds linting for test files and automatic formatting for JSON files by updating the Biome configuration. It enables JSON formatting and linting for test files while excluding certain TypeScript rules that are commonly relaxed in test environments.

  • Added linting overrides for test files to disable noExplicitAny and noNonNullAssertion rules
  • Enabled JSON formatting with exclusions for locale files
  • Applied automatic formatting and linting fixes to affected files

Reviewed Changes

Copilot reviewed 18 out of 35 changed files in this pull request and generated no comments.

Show a summary per file
File Description
biome.json Updated configuration to include JSON files, enable JSON formatting, and add test file linting overrides
packages/web/src/core/stores/nodeDBStore/nodeDBStore.test.ts Applied linting fixes including brace formatting and whitespace cleanup
packages/transport-web-serial/src/transport.test.ts Applied linting fixes including import reordering and brace formatting
packages/transport-web-bluetooth/src/transport.test.ts Applied linting fixes including import cleanup and brace formatting
Multiple package.json files Applied JSON formatting to tsdown configuration objects
Multiple tsconfig.json files Applied JSON formatting and removed trailing whitespace
.vscode/settings.json Applied JSON formatting to VS Code configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@danditomaso danditomaso merged commit 91426a8 into meshtastic:main Aug 31, 2025
1 of 2 checks passed
@philon- philon- mentioned this pull request Aug 31, 2025
4 tasks
@philon- philon- deleted the biome-changes branch September 1, 2025 13:17
@philon- philon- mentioned this pull request Sep 1, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants