Interface: SpellCheckFileOptions
Defined in: packages/cspell-lib/src/lib/spellCheckFile.ts:17
Extends
ValidateTextOptions.Pick<CSpellUserSettings,"unknownWords">
Properties
configFile?
optionalconfigFile:string
Defined in: packages/cspell-lib/src/lib/spellCheckFile.ts:22
Optional path to a configuration file. If given, it will be used instead of searching for a configuration file.
encoding?
optionalencoding:BufferEncoding
Defined in: packages/cspell-lib/src/lib/spellCheckFile.ts:27
File encoding
Default Value
'utf-8'
generateSuggestions?
optionalgenerateSuggestions:boolean
Defined in: packages/cspell-lib/src/lib/textValidation/ValidateTextOptions.ts:5
Generate suggestions where there are spelling issues.
Inherited from
ValidateTextOptions.generateSuggestions
noConfigSearch?
optionalnoConfigSearch:boolean
Defined in: packages/cspell-lib/src/lib/spellCheckFile.ts:36
Prevents searching for local configuration files
By default the spell checker looks for configuration files
starting at the location of given filename.
If configFile is defined it will still be loaded instead of searching.
false will override the value in settings.noConfigSearch.
Default Value
undefined
numSuggestions?
optionalnumSuggestions:number
Defined in: packages/cspell-lib/src/lib/textValidation/ValidateTextOptions.ts:10
The number of suggestions to generate. The higher the number the longer it takes.
Inherited from
ValidateTextOptions.numSuggestions
skipValidation?
optionalskipValidation:boolean
Defined in: packages/cspell-lib/src/lib/textValidation/ValidateTextOptions.ts:20
Skips spell checking the document. Useful for testing and dry runs. It will read the configuration and parse the document.
Inherited from
ValidateTextOptions.skipValidation
unknownWords?
optionalunknownWords:UnknownWordsChoices
Defined in: packages/cspell-types/dist/index.d.mts:326
Controls how unknown words are handled.
report-all- Report all unknown words (default behavior)report-simple- Report unknown words that have simple spelling errors, typos, and flagged words.report-common-typos- Report unknown words that are common typos and flagged words.report-flagged- Report unknown words that are flagged.
Default
"report-all"
Since
9.1.0
Inherited from
UnknownWordsConfiguration.unknownWords
validateDirectives?
optionalvalidateDirectives:boolean
Defined in: packages/cspell-lib/src/lib/textValidation/ValidateTextOptions.ts:15
Verify that the in-document directives are correct.
Inherited from
ValidateTextOptions.validateDirectives