@cspell/cspell-types 8.8.0 → 8.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -11
- package/cspell.schema.json +34 -12
- package/dist/CSpellSettingsDef.d.ts +52 -16
- package/dist/configFields.js +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,18 +6,19 @@ This package contains no dependencies to avoid any security issues.
|
|
|
6
6
|
|
|
7
7
|
## Support Future Development
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
<!--- @@inject: ../../static/sponsor.md --->
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
- [](https://github.com/sponsors/streetsidesoftware)
|
|
12
|
+
- [](https://patreon.com/streetsidesoftware)
|
|
13
|
+
- [](https://www.paypal.com/donate/?hosted_button_id=26LNBP2Q6MKCY)
|
|
14
|
+
- [](https://opencollective.com/cspell)
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
The maintainers of cspell and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-cspell?utm_source=npm-cspell&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
|
16
|
+
<!--- @@inject-end: ../../static/sponsor.md --->
|
|
16
17
|
|
|
17
18
|
## Installation
|
|
18
19
|
|
|
19
20
|
```
|
|
20
|
-
npm i -
|
|
21
|
+
npm i -S @cspell/cspell-types
|
|
21
22
|
```
|
|
22
23
|
|
|
23
24
|
## Usage
|
|
@@ -75,10 +76,6 @@ The maintainers of cspell and thousands of other packages are working with Tidel
|
|
|
75
76
|
|
|
76
77
|
---
|
|
77
78
|
|
|
78
|
-
<p align="center">
|
|
79
|
-
Brought to you by <a href="https://streetsidesoftware.com" title="Street Side Software">
|
|
80
|
-
<img width="16" alt="Street Side Software Logo" src="https://i.imgur.com/CyduuVY.png" /> Street Side Software
|
|
81
|
-
</a>
|
|
82
|
-
</p>
|
|
79
|
+
<p align="center">Brought to you by<a href="https://streetsidesoftware.com" title="Street Side Software"><img width="16" alt="Street Side Software Logo" src="https://i.imgur.com/CyduuVY.png" /> Street Side Software</a></p>
|
|
83
80
|
|
|
84
81
|
<!--- @@inject-end: ../../static/footer.md --->
|
package/cspell.schema.json
CHANGED
|
@@ -1191,13 +1191,13 @@
|
|
|
1191
1191
|
"type": "array"
|
|
1192
1192
|
},
|
|
1193
1193
|
"enableFiletypes": {
|
|
1194
|
-
"description": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by
|
|
1194
|
+
"description": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by {@link Settings.enabledLanguageIds } . To disable a language, prefix with `!` as in `!json`,\n\n\n**Example: individual file types**\n\n``` jsonc // enable checking for jsonc !json // disable checking for json kotlin // enable checking for kotlin ```\n\n**Example: enable all file types**\n\n```\n* // enable checking for all file types !json // except for json ```",
|
|
1195
1195
|
"items": {
|
|
1196
1196
|
"$ref": "#/definitions/LanguageIdSingle"
|
|
1197
1197
|
},
|
|
1198
|
-
"markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by
|
|
1198
|
+
"markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by {@link Settings.enabledLanguageIds } .\nTo disable a language, prefix with `!` as in `!json`,\n\n\n**Example: individual file types**\n\n```\njsonc // enable checking for jsonc\n!json // disable checking for json\nkotlin // enable checking for kotlin\n```\n\n**Example: enable all file types**\n\n```\n* // enable checking for all file types\n!json // except for json\n```",
|
|
1199
1199
|
"scope": "resource",
|
|
1200
|
-
"title": "File Types
|
|
1200
|
+
"title": "Enable File Types",
|
|
1201
1201
|
"type": "array",
|
|
1202
1202
|
"uniqueItems": true
|
|
1203
1203
|
},
|
|
@@ -1207,13 +1207,24 @@
|
|
|
1207
1207
|
"markdownDescription": "Is the spell checker enabled.",
|
|
1208
1208
|
"type": "boolean"
|
|
1209
1209
|
},
|
|
1210
|
+
"enabledFileTypes": {
|
|
1211
|
+
"additionalProperties": {
|
|
1212
|
+
"type": "boolean"
|
|
1213
|
+
},
|
|
1214
|
+
"description": "Enable / Disable checking file types (languageIds).\n\nThis setting replaces: {@link Settings.enabledLanguageIds } and {@link Settings.enableFiletypes } .\n\nA Value of:\n- `true` - enable checking for the file type\n- `false` - disable checking for the file type\n\nA file type of `*` is a wildcard that enables all file types.\n\n**Example: enable all file types**\n\n| File Type | Enabled | Comment | | --------- | ------- | ------- | | `*` | `true` | Enable all file types. | | `json` | `false` | Disable checking for json files. |",
|
|
1215
|
+
"markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThis setting replaces: {@link Settings.enabledLanguageIds } and {@link Settings.enableFiletypes } .\n\nA Value of:\n- `true` - enable checking for the file type\n- `false` - disable checking for the file type\n\nA file type of `*` is a wildcard that enables all file types.\n\n**Example: enable all file types**\n\n| File Type | Enabled | Comment |\n| --------- | ------- | ------- |\n| `*` | `true` | Enable all file types. |\n| `json` | `false` | Disable checking for json files. |",
|
|
1216
|
+
"title": "Enabled File Types to Check",
|
|
1217
|
+
"type": "object"
|
|
1218
|
+
},
|
|
1210
1219
|
"enabledLanguageIds": {
|
|
1211
|
-
"description": "
|
|
1220
|
+
"description": "Specify a list of file types to spell check. It is better to use {@link Settings.enabledFileTypes } to Enable / Disable checking files types.",
|
|
1212
1221
|
"items": {
|
|
1213
1222
|
"$ref": "#/definitions/LanguageIdSingle"
|
|
1214
1223
|
},
|
|
1215
|
-
"markdownDescription": "
|
|
1216
|
-
"
|
|
1224
|
+
"markdownDescription": "Specify a list of file types to spell check. It is better to use {@link Settings.enabledFileTypes } to Enable / Disable checking files types.",
|
|
1225
|
+
"title": "Enabled Language Ids",
|
|
1226
|
+
"type": "array",
|
|
1227
|
+
"uniqueItems": true
|
|
1217
1228
|
},
|
|
1218
1229
|
"filename": {
|
|
1219
1230
|
"anyOf": [
|
|
@@ -1680,13 +1691,13 @@
|
|
|
1680
1691
|
"type": "array"
|
|
1681
1692
|
},
|
|
1682
1693
|
"enableFiletypes": {
|
|
1683
|
-
"description": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by
|
|
1694
|
+
"description": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by {@link Settings.enabledLanguageIds } . To disable a language, prefix with `!` as in `!json`,\n\n\n**Example: individual file types**\n\n``` jsonc // enable checking for jsonc !json // disable checking for json kotlin // enable checking for kotlin ```\n\n**Example: enable all file types**\n\n```\n* // enable checking for all file types !json // except for json ```",
|
|
1684
1695
|
"items": {
|
|
1685
1696
|
"$ref": "#/definitions/LanguageIdSingle"
|
|
1686
1697
|
},
|
|
1687
|
-
"markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by
|
|
1698
|
+
"markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThese are in additional to the file types specified by {@link Settings.enabledLanguageIds } .\nTo disable a language, prefix with `!` as in `!json`,\n\n\n**Example: individual file types**\n\n```\njsonc // enable checking for jsonc\n!json // disable checking for json\nkotlin // enable checking for kotlin\n```\n\n**Example: enable all file types**\n\n```\n* // enable checking for all file types\n!json // except for json\n```",
|
|
1688
1699
|
"scope": "resource",
|
|
1689
|
-
"title": "File Types
|
|
1700
|
+
"title": "Enable File Types",
|
|
1690
1701
|
"type": "array",
|
|
1691
1702
|
"uniqueItems": true
|
|
1692
1703
|
},
|
|
@@ -1702,13 +1713,24 @@
|
|
|
1702
1713
|
"markdownDescription": "Is the spell checker enabled.",
|
|
1703
1714
|
"type": "boolean"
|
|
1704
1715
|
},
|
|
1716
|
+
"enabledFileTypes": {
|
|
1717
|
+
"additionalProperties": {
|
|
1718
|
+
"type": "boolean"
|
|
1719
|
+
},
|
|
1720
|
+
"description": "Enable / Disable checking file types (languageIds).\n\nThis setting replaces: {@link Settings.enabledLanguageIds } and {@link Settings.enableFiletypes } .\n\nA Value of:\n- `true` - enable checking for the file type\n- `false` - disable checking for the file type\n\nA file type of `*` is a wildcard that enables all file types.\n\n**Example: enable all file types**\n\n| File Type | Enabled | Comment | | --------- | ------- | ------- | | `*` | `true` | Enable all file types. | | `json` | `false` | Disable checking for json files. |",
|
|
1721
|
+
"markdownDescription": "Enable / Disable checking file types (languageIds).\n\nThis setting replaces: {@link Settings.enabledLanguageIds } and {@link Settings.enableFiletypes } .\n\nA Value of:\n- `true` - enable checking for the file type\n- `false` - disable checking for the file type\n\nA file type of `*` is a wildcard that enables all file types.\n\n**Example: enable all file types**\n\n| File Type | Enabled | Comment |\n| --------- | ------- | ------- |\n| `*` | `true` | Enable all file types. |\n| `json` | `false` | Disable checking for json files. |",
|
|
1722
|
+
"title": "Enabled File Types to Check",
|
|
1723
|
+
"type": "object"
|
|
1724
|
+
},
|
|
1705
1725
|
"enabledLanguageIds": {
|
|
1706
|
-
"description": "
|
|
1726
|
+
"description": "Specify a list of file types to spell check. It is better to use {@link Settings.enabledFileTypes } to Enable / Disable checking files types.",
|
|
1707
1727
|
"items": {
|
|
1708
1728
|
"$ref": "#/definitions/LanguageIdSingle"
|
|
1709
1729
|
},
|
|
1710
|
-
"markdownDescription": "
|
|
1711
|
-
"
|
|
1730
|
+
"markdownDescription": "Specify a list of file types to spell check. It is better to use {@link Settings.enabledFileTypes } to Enable / Disable checking files types.",
|
|
1731
|
+
"title": "Enabled Language Ids",
|
|
1732
|
+
"type": "array",
|
|
1733
|
+
"uniqueItems": true
|
|
1712
1734
|
},
|
|
1713
1735
|
"failFast": {
|
|
1714
1736
|
"default": false,
|
|
@@ -160,39 +160,75 @@ export interface ExtendableSettings extends Settings {
|
|
|
160
160
|
*/
|
|
161
161
|
overrides?: OverrideSettings[];
|
|
162
162
|
}
|
|
163
|
-
export interface
|
|
163
|
+
export interface SpellCheckerExtensionSettings {
|
|
164
164
|
/**
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
* For example:
|
|
169
|
-
*
|
|
170
|
-
* - "en-GB" for British English.
|
|
171
|
-
* - "en,nl" to enable both English and Dutch.
|
|
172
|
-
*
|
|
173
|
-
* @default "en"
|
|
165
|
+
* Specify a list of file types to spell check. It is better to use {@link Settings.enabledFileTypes} to Enable / Disable checking files types.
|
|
166
|
+
* @title Enabled Language Ids
|
|
167
|
+
* @uniqueItems true
|
|
174
168
|
*/
|
|
175
|
-
language?: LocaleId;
|
|
176
|
-
/** languageIds for the files to spell check. */
|
|
177
169
|
enabledLanguageIds?: LanguageIdSingle[];
|
|
178
170
|
/**
|
|
179
171
|
* Enable / Disable checking file types (languageIds).
|
|
180
172
|
*
|
|
181
|
-
* These are in additional to the file types specified by
|
|
182
|
-
*
|
|
173
|
+
* These are in additional to the file types specified by {@link Settings.enabledLanguageIds}.
|
|
183
174
|
* To disable a language, prefix with `!` as in `!json`,
|
|
184
175
|
*
|
|
185
|
-
*
|
|
176
|
+
*
|
|
177
|
+
* **Example: individual file types**
|
|
178
|
+
*
|
|
186
179
|
* ```
|
|
187
180
|
* jsonc // enable checking for jsonc
|
|
188
181
|
* !json // disable checking for json
|
|
189
182
|
* kotlin // enable checking for kotlin
|
|
190
183
|
* ```
|
|
191
|
-
*
|
|
184
|
+
*
|
|
185
|
+
* **Example: enable all file types**
|
|
186
|
+
*
|
|
187
|
+
* ```
|
|
188
|
+
* * // enable checking for all file types
|
|
189
|
+
* !json // except for json
|
|
190
|
+
* ```
|
|
191
|
+
* @title Enable File Types
|
|
192
192
|
* @scope resource
|
|
193
193
|
* @uniqueItems true
|
|
194
194
|
*/
|
|
195
195
|
enableFiletypes?: LanguageIdSingle[];
|
|
196
|
+
/**
|
|
197
|
+
* Enable / Disable checking file types (languageIds).
|
|
198
|
+
*
|
|
199
|
+
* This setting replaces: {@link Settings.enabledLanguageIds} and {@link Settings.enableFiletypes}.
|
|
200
|
+
*
|
|
201
|
+
* A Value of:
|
|
202
|
+
* - `true` - enable checking for the file type
|
|
203
|
+
* - `false` - disable checking for the file type
|
|
204
|
+
*
|
|
205
|
+
* A file type of `*` is a wildcard that enables all file types.
|
|
206
|
+
*
|
|
207
|
+
* **Example: enable all file types**
|
|
208
|
+
*
|
|
209
|
+
* | File Type | Enabled | Comment |
|
|
210
|
+
* | --------- | ------- | ------- |
|
|
211
|
+
* | `*` | `true` | Enable all file types. |
|
|
212
|
+
* | `json` | `false` | Disable checking for json files. |
|
|
213
|
+
*
|
|
214
|
+
* @title Enabled File Types to Check
|
|
215
|
+
* @since 8.8.1
|
|
216
|
+
*/
|
|
217
|
+
enabledFileTypes?: Record<string, boolean>;
|
|
218
|
+
}
|
|
219
|
+
export interface Settings extends ReportingConfiguration, BaseSetting, PnPSettings, SpellCheckerExtensionSettings {
|
|
220
|
+
/**
|
|
221
|
+
* Current active spelling language. This specifies the language locale to use in choosing the
|
|
222
|
+
* general dictionary.
|
|
223
|
+
*
|
|
224
|
+
* For example:
|
|
225
|
+
*
|
|
226
|
+
* - "en-GB" for British English.
|
|
227
|
+
* - "en,nl" to enable both English and Dutch.
|
|
228
|
+
*
|
|
229
|
+
* @default "en"
|
|
230
|
+
*/
|
|
231
|
+
language?: LocaleId;
|
|
196
232
|
/**
|
|
197
233
|
* Additional settings for individual languages.
|
|
198
234
|
*
|
package/dist/configFields.js
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "8.8.
|
|
6
|
+
"version": "8.8.2",
|
|
7
7
|
"description": "Types for cspell and cspell-lib",
|
|
8
8
|
"type": "commonjs",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"engines": {
|
|
87
87
|
"node": ">=18"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "e82ec807677c040c38b7d5608c8a8d42185d3b24"
|
|
90
90
|
}
|