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.
npm install @flint.fyi/plugin-spellingbun install @flint.fyi/plugin-spellingdeno install @flint.fyi/plugin-spellingpnpm install @flint.fyi/plugin-spellingyarn install @flint.fyi/plugin-spellingSee the CSpell spell checker documentation for more details on spell-checking code.
Presets
Section titled “Presets”logical
Section titled “logical”Rules that run CSpell to find likely spell-checking mistakes.
import { function defineConfig(definition: ConfigDefinition): Config
Defines a new linter configuration for a Flint config file.
defineConfig, const globs: { all: FilesComputer;}
globs, import spelling
spelling } from "flint";
export default function defineConfig(definition: ConfigDefinition): Config
Defines a new linter configuration for a Flint config file.
defineConfig({ ConfigDefinition.use: ConfigUseDefinition[]
Specifies the files to be linted alongside the rules and settings to lint with.
use: [ { ConfigUseDefinition.files: AnyLevelDeep<FilesValue>
A list of glob patterns describing which file(s) to lint.
files: const globs: { all: FilesComputer;}
globs.all: FilesComputer
Selects all files included (and not excluded) by past config definitions.
all, ConfigUseDefinition.rules: AnyLevelDeep<ConfigRuleDefinition>
Any number of rules and/or presets of rules to enable for those files.
rules: import spelling
spelling.any
presets.any
logical, }, ],});
Made with ❤️🔥 around the world by
the Flint team and contributors.