Skip to content

Spelling Plugin

Rules that detect misspelling typos in source files using the code-optimized "CSpell" spell-checker.
This plugin is provided in a standalone @flint.fyi/plugin-spelling npm package.

Terminal window
npm install @flint.fyi/plugin-spelling

See the CSpell spell checker documentation for more details on spell-checking code.

Rules that run CSpell to find likely spell-checking mistakes.

flint.config.ts
import { defineConfig, globs, spelling } from "flint";
export default defineConfig({
use: [
{
files: globs.all,
rules: spelling.presets.logical,
},
],
});
Flint RulePreset
cspellRuns the CSpell spell checker on any source code file.logical
Made with ❤️‍🔥 in Boston by Josh Goldberg and contributors.