-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ts
55 lines (49 loc) · 1020 Bytes
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
* Configuration options for the lockfile dictionaries plugin
*/
export interface LockfileDictionariesConfig {
/**
* Paths to lockfiles to extract words from
*/
lockfiles?: string[]
/**
* Whether to enable the plugin
* @default true
*/
enabled?: boolean
/**
* Whether to automatically detect lockfiles in the project
* @default true
*/
autoDetect?: boolean
/**
* Patterns to use for auto-detection
*/
autoDetectPatterns?: string[]
/**
* Path to the dictionary file
* @default '.cspell/lockfile-words.txt'
*/
dictionaryPath?: string
/**
* Enable debug logging
* @default false
*/
debug?: boolean
}
/**
* Default configuration
*/
export const defaultConfig: LockfileDictionariesConfig = {
enabled: true,
autoDetect: true,
autoDetectPatterns: [
'**/package-lock.json',
'**/yarn.lock',
'**/Gemfile.lock',
'**/composer.lock',
'**/Cargo.lock',
],
dictionaryPath: '.cspell/lockfile-words.txt',
debug: false,
}