FsHotWatch.Lint 0.3.0-alpha.1

This is a prerelease version of FsHotWatch.Lint.
dotnet add package FsHotWatch.Lint --version 0.3.0-alpha.1
                    
NuGet\Install-Package FsHotWatch.Lint -Version 0.3.0-alpha.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FsHotWatch.Lint" Version="0.3.0-alpha.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FsHotWatch.Lint" Version="0.3.0-alpha.1" />
                    
Directory.Packages.props
<PackageReference Include="FsHotWatch.Lint" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FsHotWatch.Lint --version 0.3.0-alpha.1
                    
#r "nuget: FsHotWatch.Lint, 0.3.0-alpha.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FsHotWatch.Lint@0.3.0-alpha.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FsHotWatch.Lint&version=0.3.0-alpha.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=FsHotWatch.Lint&version=0.3.0-alpha.1&prerelease
                    
Install as a Cake Tool

FsHotWatch.Lint

Plugin that runs FSharpLint using the warm FSharpChecker's parse and check results -- no re-parsing needed.

Why

FSharpLint normally parses your entire project from scratch every time you run it. With FsHotWatch, the compiler is already warm -- the lint plugin calls lintParsedSource directly with the AST and type-check results that are already in memory, so linting takes milliseconds.

How it works

  1. You save a file
  2. The daemon type-checks it with the warm FSharpChecker
  3. LintPlugin receives FileChecked with parse results and check results
  4. It calls FSharpLint.lintParsedSource with the warm AST
  5. Warnings are reported to the error ledger

Configuration

In .fs-hot-watch.json:

{
  "lint": true
}

Set "lint": false to disable. The plugin automatically loads fsharplint.json from your repo root if it exists.

CLI

# Run linter on all files and show warnings
fs-hot-watch lint

# Query lint warning count
fs-hot-watch warnings

# Show all errors (including lint warnings)
fs-hot-watch errors

Programmatic usage

daemon.RegisterHandler(
    LintPlugin.create
        (Some "fsharplint.json")   // config path (or None for defaults)
        None                        // getCommitId for caching
)

Install

dotnet add package FsHotWatch.Lint
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.0-alpha.1 33 4/8/2026
0.1.0-alpha.1 44 4/3/2026