TalkCodyTalkCody

Code Linting

Use TalkCody's built-in Lint feature to detect code issues in real-time

TalkCody integrates Biome for code linting, providing real-time code quality detection similar to VSCode.

Requirements

The Lint feature requires one of the following:

  • bun (recommended) - Faster execution speed
  • Node.js - Falls back to npx if bun is unavailable

Make sure bun or Node.js is installed on your system and accessible from the terminal.

Supported Languages

ExtensionLanguage
.jsJavaScript
.jsxJSX
.tsTypeScript
.tsxTSX
.jsonJSON
.jsoncJSON with Comments
.cssCSS
.htmlHTML

Note: Biome does not currently support SCSS, Less, Markdown, and other file types.

Basic Usage

Automatic Detection

The editor automatically runs code checks at the following times:

  • On file open - Initial check runs automatically
  • On file save - Checks immediately after saving
  • On content change - Delayed check after editing stops (default 1 second)

Detected issues are displayed with squiggly lines in the editor:

  • Red squiggly lines - Errors
  • Yellow squiggly lines - Warnings

Problems Panel

Click the diagnostic badge in the editor header (showing error/warning counts) to open the problems panel:

  • View all diagnostic information
  • Filter issues by severity level
  • Click on an issue to jump to the corresponding code location

Settings

Open TalkCody Settings, find the "Code Linting" tab to configure:

OptionDescription
Enable Code LintingGlobal toggle
Show ErrorsWhether to display error-level diagnostics
Show WarningsWhether to display warning-level diagnostics
Show InfoWhether to display info-level diagnostics

Custom Rules

Lint automatically reads the biome.json configuration file in the project root directory (if it exists).

You can create this file to customize linting rules, for example:

{
  "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
  "linter": {
    "enabled": true,
    "rules": {
      "recommended": true,
      "suspicious": {
        "noExplicitAny": "warn"
      },
      "style": {
        "useConst": "error"
      }
    }
  }
}

For more configuration options, refer to the Biome official documentation.