Interface: SpellCheckFileOptions
Defined in: packages/cspell-lib/src/lib/spellCheckFile.ts:17
Extends
ValidateTextOptions
Properties
configFile?
optional
configFile: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?
optional
encoding:BufferEncoding
Defined in: packages/cspell-lib/src/lib/spellCheckFile.ts:27
File encoding
Default Value
'utf-8'
generateSuggestions?
optional
generateSuggestions:boolean
Defined in: packages/cspell-lib/src/lib/textValidation/ValidateTextOptions.ts:5
Generate suggestions where there are spelling issues.
Inherited from
ValidateTextOptions.generateSuggestions
noConfigSearch?
optional
noConfigSearch: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?
optional
numSuggestions: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?
optional
skipValidation: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
validateDirectives?
optional
validateDirectives:boolean
Defined in: packages/cspell-lib/src/lib/textValidation/ValidateTextOptions.ts:15
Verify that the in-document directives are correct.
Inherited from
ValidateTextOptions.validateDirectives