@w5s/cspell-config 1.0.0-alpha.1 → 1.0.0-alpha.10
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/cspell-ext.json +8 -0
- package/dict/fullstack.txt +3 -0
- package/dict/names.txt +1 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +8 -5
- package/package.json +14 -8
- package/src/index.ts +8 -4
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
package/cspell-ext.json
ADDED
package/dict/fullstack.txt
CHANGED
package/dict/names.txt
CHANGED
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
|
-
// @ts-ignore
|
|
5
|
+
// @ts-ignore CSpell config is not typed
|
|
6
6
|
const cspell_default_config_js_1 = __importDefault(require("@cspell/cspell-bundled-dicts/cspell-default.config.js"));
|
|
7
7
|
const toArray = (value) => (Array.isArray(value) ? value : value == null ? [] : [value]);
|
|
8
8
|
const defaultSettings = cspell_default_config_js_1.default;
|
|
@@ -30,6 +30,7 @@ const settings = {
|
|
|
30
30
|
description: 'Default cspell configuration.',
|
|
31
31
|
words: [],
|
|
32
32
|
flagWords: [],
|
|
33
|
+
useGitignore: true,
|
|
33
34
|
dictionaryDefinitions: [
|
|
34
35
|
...toArray(defaultSettings.dictionaryDefinitions),
|
|
35
36
|
{
|
|
@@ -65,12 +66,10 @@ const settings = {
|
|
|
65
66
|
'**/__snapshots__/**',
|
|
66
67
|
// '**/.git/**',
|
|
67
68
|
'**/.vscode/**',
|
|
68
|
-
'**/*.log',
|
|
69
69
|
'**/*.snap',
|
|
70
|
-
'**/build/**',
|
|
71
|
-
'**/dist/**',
|
|
72
70
|
'**/lib/**',
|
|
73
71
|
'**/node_modules/**',
|
|
72
|
+
'**/package.json',
|
|
74
73
|
'**/package-lock.json',
|
|
75
74
|
'**/renovate.json',
|
|
76
75
|
'**/vscode-extension/**',
|
|
@@ -90,7 +89,11 @@ const settings = {
|
|
|
90
89
|
dictionaries: ['w5s-typescript'],
|
|
91
90
|
dictionaryDefinitions: [],
|
|
92
91
|
},
|
|
92
|
+
{
|
|
93
|
+
languageId: 'typescript,javascript,typescriptreact,javascriptreact',
|
|
94
|
+
locale: '*',
|
|
95
|
+
ignoreRegExpList: ['\\/\\* eslint-disable.+', '\\/\\/ eslint-disable.+'],
|
|
96
|
+
},
|
|
93
97
|
],
|
|
94
98
|
};
|
|
95
99
|
module.exports = settings;
|
|
96
|
-
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/cspell-config",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.10",
|
|
4
4
|
"description": "CSpell configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cspell"
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"typings": "./index.d.ts",
|
|
27
27
|
"files": [
|
|
28
|
+
"cspell-ext.json",
|
|
28
29
|
"dict/**/*",
|
|
29
30
|
"lib/**/!(*.spec).d.ts",
|
|
30
31
|
"lib/**/!(*.spec).d.ts.map",
|
|
@@ -35,10 +36,10 @@
|
|
|
35
36
|
"scripts": {
|
|
36
37
|
"__build:dict": "cd dict;cspell-tools-cli compile filetypes.txt",
|
|
37
38
|
"build": "concurrently \"npm:build:*\" \":\"",
|
|
38
|
-
"build:
|
|
39
|
+
"build:tsc": "tsc -b tsconfig.build.json",
|
|
39
40
|
"clean": "concurrently \"npm:clean:*\" \":\"",
|
|
40
|
-
"clean:
|
|
41
|
-
"docs": "
|
|
41
|
+
"clean:tsc": "rm -rf lib",
|
|
42
|
+
"docs": "node ../../markdown.mjs",
|
|
42
43
|
"format": "concurrently \"npm:format:*\" \":\"",
|
|
43
44
|
"format:src": "eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml",
|
|
44
45
|
"lint": "concurrently \"npm:lint:*\" \":\"",
|
|
@@ -67,18 +68,23 @@
|
|
|
67
68
|
"@cspell/cspell-bundled-dicts": "^6.0.0"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
|
-
"@cspell/cspell-tools": "
|
|
71
|
-
"@cspell/cspell-types": "
|
|
72
|
-
"@jest/globals": "29.3
|
|
71
|
+
"@cspell/cspell-tools": "6.19.2",
|
|
72
|
+
"@cspell/cspell-types": "6.19.2",
|
|
73
|
+
"@jest/globals": "29.4.3"
|
|
73
74
|
},
|
|
74
75
|
"peerDependencies": {
|
|
75
76
|
"cspell": "^6.0.0"
|
|
76
77
|
},
|
|
78
|
+
"peerDependenciesMeta": {
|
|
79
|
+
"cspell": {
|
|
80
|
+
"optional": true
|
|
81
|
+
}
|
|
82
|
+
},
|
|
77
83
|
"engines": {
|
|
78
84
|
"node": ">=16.0.0"
|
|
79
85
|
},
|
|
80
86
|
"publishConfig": {
|
|
81
87
|
"access": "public"
|
|
82
88
|
},
|
|
83
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "ace7dcdd3244c34b38de66da80347ca16e59838d"
|
|
84
90
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AdvancedCSpellSettings } from '@cspell/cspell-types';
|
|
2
|
-
// @ts-ignore
|
|
2
|
+
// @ts-ignore CSpell config is not typed
|
|
3
3
|
import cSpellSettings from '@cspell/cspell-bundled-dicts/cspell-default.config.js';
|
|
4
4
|
|
|
5
5
|
const toArray = <T>(value: T | T[] | undefined) => (Array.isArray(value) ? value : value == null ? [] : [value]);
|
|
@@ -28,6 +28,7 @@ const settings: AdvancedCSpellSettings = {
|
|
|
28
28
|
description: 'Default cspell configuration.',
|
|
29
29
|
words: [],
|
|
30
30
|
flagWords: [],
|
|
31
|
+
useGitignore: true,
|
|
31
32
|
dictionaryDefinitions: [
|
|
32
33
|
...toArray(defaultSettings.dictionaryDefinitions),
|
|
33
34
|
{
|
|
@@ -63,12 +64,10 @@ const settings: AdvancedCSpellSettings = {
|
|
|
63
64
|
'**/__snapshots__/**',
|
|
64
65
|
// '**/.git/**',
|
|
65
66
|
'**/.vscode/**',
|
|
66
|
-
'**/*.log',
|
|
67
67
|
'**/*.snap',
|
|
68
|
-
'**/build/**',
|
|
69
|
-
'**/dist/**',
|
|
70
68
|
'**/lib/**',
|
|
71
69
|
'**/node_modules/**',
|
|
70
|
+
'**/package.json',
|
|
72
71
|
'**/package-lock.json',
|
|
73
72
|
'**/renovate.json',
|
|
74
73
|
'**/vscode-extension/**',
|
|
@@ -88,6 +87,11 @@ const settings: AdvancedCSpellSettings = {
|
|
|
88
87
|
dictionaries: ['w5s-typescript'],
|
|
89
88
|
dictionaryDefinitions: [],
|
|
90
89
|
},
|
|
90
|
+
{
|
|
91
|
+
languageId: 'typescript,javascript,typescriptreact,javascriptreact',
|
|
92
|
+
locale: '*',
|
|
93
|
+
ignoreRegExpList: ['\\/\\* eslint-disable.+', '\\/\\/ eslint-disable.+'],
|
|
94
|
+
},
|
|
91
95
|
],
|
|
92
96
|
};
|
|
93
97
|
|
package/lib/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAsBnE,QAAA,MAAM,QAAQ,EAAE,sBAqEf,CAAC;AAEF,SAAS,QAAQ,CAAC"}
|
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AACA,aAAa;AACb,qHAAmF;AAEnF,MAAM,OAAO,GAAG,CAAI,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