vscode-eslint 0.0.1
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/$shared/customMessages.ts +113 -0
- package/$shared/settings.ts +189 -0
- package/.CodeQL.yml +5 -0
- package/.azure-pipelines.yml +27 -0
- package/.github/commands.yml +127 -0
- package/.github/locker.yml +6 -0
- package/.github/needs_more_info.yml +6 -0
- package/.github/workflows/npm-publish.yml +53 -0
- package/.github/workflows/release-please.yml +22 -0
- package/.lsifrc.json +4 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/settings.json +52 -0
- package/.vscode/spellright.dict +8 -0
- package/.vscode/tasks.json +39 -0
- package/.vscodeignore +23 -0
- package/CHANGELOG.md +524 -0
- package/License.txt +17 -0
- package/README.md +517 -0
- package/SECURITY.md +41 -0
- package/agents.md +36 -0
- package/bin/vscode-eslint.js +56 -0
- package/build/azure-pipelines/linux/build.yml +14 -0
- package/build/azure-pipelines/pre-release.yml +42 -0
- package/build/azure-pipelines/release.yml +45 -0
- package/build/azure-pipelines/win32/build.yml +14 -0
- package/build/bin/all.js +29 -0
- package/build/bin/linking.js +102 -0
- package/build/bin/symlink.js +35 -0
- package/client/.mocharc.json +6 -0
- package/client/agents.md +5 -0
- package/client/package-lock.json +176 -0
- package/client/package.json +29 -0
- package/client/src/client.ts +992 -0
- package/client/src/extension.ts +180 -0
- package/client/src/node-utils.ts +393 -0
- package/client/src/settings.ts +379 -0
- package/client/src/tasks.ts +186 -0
- package/client/src/tests/glob.test.ts +31 -0
- package/client/src/vscode-utils.ts +28 -0
- package/client/test/mocha.opts +3 -0
- package/client/tsconfig.json +20 -0
- package/client/webpack.config.js +25 -0
- package/contributing.md +19 -0
- package/esbuild.js +62 -0
- package/eslint.config.js +129 -0
- package/eslint_icon.png +0 -0
- package/history/settings_1_9_x.md +110 -0
- package/images/2_1_10/eslint-dialog.png +0 -0
- package/images/2_1_10/eslint-status.png +0 -0
- package/package-json-schema.json +9 -0
- package/package.json +686 -0
- package/playgrounds/7.0/.eslintignore +1 -0
- package/playgrounds/7.0/.eslintrc.json +71 -0
- package/playgrounds/7.0/.vscode/settings.json +85 -0
- package/playgrounds/7.0/app.js +12 -0
- package/playgrounds/7.0/build/.eslintignore +1 -0
- package/playgrounds/7.0/build/.eslintrc.json +30 -0
- package/playgrounds/7.0/build/build.js +11 -0
- package/playgrounds/7.0/jsconfig.json +5 -0
- package/playgrounds/7.0/package-lock.json +2133 -0
- package/playgrounds/7.0/package.json +10 -0
- package/playgrounds/7.0/readme.md +0 -0
- package/playgrounds/7.0/subDir/sub.js +11 -0
- package/playgrounds/7.0/subDir/test.jsx +10 -0
- package/playgrounds/7.0/test.js +11 -0
- package/playgrounds/7.0/test.sh +1 -0
- package/playgrounds/7.0/test.vue +33 -0
- package/playgrounds/7.0/test2.html +8 -0
- package/playgrounds/8.0/.eslintignore +1 -0
- package/playgrounds/8.0/.eslintrc.json +71 -0
- package/playgrounds/8.0/.vscode/settings.json +91 -0
- package/playgrounds/8.0/app.js +12 -0
- package/playgrounds/8.0/build/.eslintignore +1 -0
- package/playgrounds/8.0/build/.eslintrc.json +30 -0
- package/playgrounds/8.0/build/build.js +11 -0
- package/playgrounds/8.0/jsconfig.json +5 -0
- package/playgrounds/8.0/package-lock.json +2321 -0
- package/playgrounds/8.0/package.json +10 -0
- package/playgrounds/8.0/readme.md +17 -0
- package/playgrounds/8.0/subDir/sub.js +11 -0
- package/playgrounds/8.0/subDir/test.jsx +10 -0
- package/playgrounds/8.0/test.ipynb +49 -0
- package/playgrounds/8.0/test.js +3 -0
- package/playgrounds/8.0/test.sh +1 -0
- package/playgrounds/8.0/test.vue +33 -0
- package/playgrounds/8.0/test2.html +8 -0
- package/playgrounds/9.0/flat/.vscode/settings.json +3 -0
- package/playgrounds/9.0/flat/app.js +12 -0
- package/playgrounds/9.0/flat/dist/ignore.js +12 -0
- package/playgrounds/9.0/flat/eslint.config.js +61 -0
- package/playgrounds/9.0/flat/package-lock.json +1053 -0
- package/playgrounds/9.0/flat/package.json +9 -0
- package/playgrounds/9.0/rc/.eslintrc.json +57 -0
- package/playgrounds/9.0/rc/.vscode/settings.json +3 -0
- package/playgrounds/9.0/rc/app.js +12 -0
- package/playgrounds/9.0/rc/package-lock.json +1345 -0
- package/playgrounds/9.0/rc/package.json +9 -0
- package/playgrounds/flat-config/.vscode/settings.json +22 -0
- package/playgrounds/flat-config/app.js +12 -0
- package/playgrounds/flat-config/eslint.config.js +51 -0
- package/playgrounds/flat-config/package-lock.json +2733 -0
- package/playgrounds/flat-config/package.json +12 -0
- package/playgrounds/flat-config/sub/sub.js +2 -0
- package/playgrounds/flat-config/test.ts +7 -0
- package/playgrounds/flat-config/tsconfig.json +11 -0
- package/playgrounds/flat-config-fail/f1/app.js +12 -0
- package/playgrounds/flat-config-fail/f1/eslint.config.js +51 -0
- package/playgrounds/flat-config-fail/package-lock.json +1683 -0
- package/playgrounds/flat-config-fail/package.json +11 -0
- package/playgrounds/flat-config-mjs/.vscode/settings.json +21 -0
- package/playgrounds/flat-config-mjs/app.js +12 -0
- package/playgrounds/flat-config-mjs/eslint.config.mjs +53 -0
- package/playgrounds/flat-config-mjs/package-lock.json +2860 -0
- package/playgrounds/flat-config-mjs/package.json +11 -0
- package/playgrounds/flat-config-mjs/sub/sub.js +2 -0
- package/playgrounds/flat-config-mjs/test.ts +7 -0
- package/playgrounds/flat-config-mjs/tsconfig.json +11 -0
- package/playgrounds/load-eslint/.vscode/settings.json +21 -0
- package/playgrounds/load-eslint/app.js +12 -0
- package/playgrounds/load-eslint/eslint.config.js +51 -0
- package/playgrounds/load-eslint/package-lock.json +2860 -0
- package/playgrounds/load-eslint/package.json +11 -0
- package/playgrounds/load-eslint/sub/sub.js +2 -0
- package/playgrounds/load-eslint/test.ts +7 -0
- package/playgrounds/load-eslint/tsconfig.json +11 -0
- package/playgrounds/noLib/test.js +22 -0
- package/playgrounds/noWD/.vscode/settings.json +2 -0
- package/playgrounds/noWD/src/.eslintrc.json +18 -0
- package/playgrounds/noWD/src/package-lock.json +2812 -0
- package/playgrounds/noWD/src/package.json +12 -0
- package/playgrounds/noWD/src/test.js +3 -0
- package/playgrounds/notebooks/notebook.ipynb +7072 -0
- package/playgrounds/notebooks/notebook2.ipynb +20 -0
- package/playgrounds/testing.code-workspace +28 -0
- package/playgrounds/ts/.eslintrc.base.json +23 -0
- package/playgrounds/ts/.eslintrc.json +191 -0
- package/playgrounds/ts/.vscode/settings.json +12 -0
- package/playgrounds/ts/package-lock.json +2687 -0
- package/playgrounds/ts/package.json +11 -0
- package/playgrounds/ts/test copy.ts +4 -0
- package/playgrounds/ts/test.ipynb +49 -0
- package/playgrounds/ts/test.ts +4 -0
- package/playgrounds/ts/test.tsx +14 -0
- package/playgrounds/ts/tsconfig.json +100 -0
- package/server/agents.md +9 -0
- package/server/package-lock.json +93 -0
- package/server/package.json +32 -0
- package/server/src/diff.ts +1079 -0
- package/server/src/eslint.ts +1471 -0
- package/server/src/eslintServer.ts +865 -0
- package/server/src/is.ts +18 -0
- package/server/src/languageDefaults.ts +40 -0
- package/server/src/linkedMap.ts +448 -0
- package/server/src/paths.ts +128 -0
- package/server/src/thenable.d.ts +5 -0
- package/server/tsconfig.json +21 -0
- package/server/webpack.config.js +25 -0
- package/shared.webpack.config.js +59 -0
- package/tsconfig.base.json +9 -0
- package/tsconfig.json +21 -0
package/package.json
ADDED
|
@@ -0,0 +1,686 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vscode-eslint",
|
|
3
|
+
"displayName": "ESLint",
|
|
4
|
+
"description": "Integrates ESLint JavaScript into VS Code.",
|
|
5
|
+
"version": "0.0.1",
|
|
6
|
+
"author": "Microsoft Corporation",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/shubham151/vscode-eslint.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/shubham151/vscode-eslint/issues"
|
|
14
|
+
},
|
|
15
|
+
"publisher": "dbaeumer",
|
|
16
|
+
"icon": "eslint_icon.png",
|
|
17
|
+
"categories": [
|
|
18
|
+
"Programming Languages",
|
|
19
|
+
"Linters"
|
|
20
|
+
],
|
|
21
|
+
"keywords": [
|
|
22
|
+
"multi-root ready"
|
|
23
|
+
],
|
|
24
|
+
"engines": {
|
|
25
|
+
"vscode": "^1.90.0"
|
|
26
|
+
},
|
|
27
|
+
"activationEvents": [
|
|
28
|
+
"onStartupFinished"
|
|
29
|
+
],
|
|
30
|
+
"extensionKind": [
|
|
31
|
+
"workspace"
|
|
32
|
+
],
|
|
33
|
+
"enabledApiProposals": [
|
|
34
|
+
],
|
|
35
|
+
"main": "./client/out/extension",
|
|
36
|
+
"capabilities": {
|
|
37
|
+
"virtualWorkspaces": {
|
|
38
|
+
"supported": false,
|
|
39
|
+
"description": "Using ESLint is not possible in virtual workspaces."
|
|
40
|
+
},
|
|
41
|
+
"untrustedWorkspaces": {
|
|
42
|
+
"supported": false,
|
|
43
|
+
"description": "The extension requires workspace trust because it loads configuration files and code from the workspace and executes it."
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"contributes": {
|
|
47
|
+
"configuration": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"title": "ESLint",
|
|
50
|
+
"properties": {
|
|
51
|
+
"eslint.enable": {
|
|
52
|
+
"scope": "resource",
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"default": true,
|
|
55
|
+
"description": "Controls whether eslint is enabled or not."
|
|
56
|
+
},
|
|
57
|
+
"eslint.packageManager": {
|
|
58
|
+
"scope": "resource",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"enum": [
|
|
61
|
+
"npm",
|
|
62
|
+
"yarn",
|
|
63
|
+
"pnpm"
|
|
64
|
+
],
|
|
65
|
+
"default": "npm",
|
|
66
|
+
"description": "The package manager you use to install node modules.",
|
|
67
|
+
"deprecationMessage": "The setting is deprecated. The Package Manager is automatically detected now."
|
|
68
|
+
},
|
|
69
|
+
"eslint.problems.shortenToSingleLine": {
|
|
70
|
+
"type": "boolean",
|
|
71
|
+
"default": false,
|
|
72
|
+
"description": "Shortens the text spans of underlined problems to their first related line.",
|
|
73
|
+
"scope": "resource"
|
|
74
|
+
},
|
|
75
|
+
"eslint.nodeEnv": {
|
|
76
|
+
"scope": "resource",
|
|
77
|
+
"type": [
|
|
78
|
+
"string",
|
|
79
|
+
"null"
|
|
80
|
+
],
|
|
81
|
+
"default": null,
|
|
82
|
+
"markdownDescription": "The value of `NODE_ENV` to use when running eslint tasks."
|
|
83
|
+
},
|
|
84
|
+
"eslint.nodePath": {
|
|
85
|
+
"scope": "machine-overridable",
|
|
86
|
+
"type": [
|
|
87
|
+
"string",
|
|
88
|
+
"null"
|
|
89
|
+
],
|
|
90
|
+
"default": null,
|
|
91
|
+
"markdownDescription": "A path added to `NODE_PATH` when resolving the eslint module."
|
|
92
|
+
},
|
|
93
|
+
"eslint.options": {
|
|
94
|
+
"scope": "resource",
|
|
95
|
+
"type": "object",
|
|
96
|
+
"default": {},
|
|
97
|
+
"markdownDescription": "The eslint options object to provide args normally passed to eslint when executed from a command line (see https://eslint.org/docs/developer-guide/nodejs-api#eslint-class)."
|
|
98
|
+
},
|
|
99
|
+
"eslint.trace.server": {
|
|
100
|
+
"scope": "window",
|
|
101
|
+
"anyOf": [
|
|
102
|
+
{
|
|
103
|
+
"type": "string",
|
|
104
|
+
"enum": [
|
|
105
|
+
"off",
|
|
106
|
+
"messages",
|
|
107
|
+
"verbose"
|
|
108
|
+
],
|
|
109
|
+
"default": "off"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"type": "object",
|
|
113
|
+
"properties": {
|
|
114
|
+
"verbosity": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"enum": [
|
|
117
|
+
"off",
|
|
118
|
+
"messages",
|
|
119
|
+
"verbose"
|
|
120
|
+
],
|
|
121
|
+
"default": "off"
|
|
122
|
+
},
|
|
123
|
+
"format": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"enum": [
|
|
126
|
+
"text",
|
|
127
|
+
"json"
|
|
128
|
+
],
|
|
129
|
+
"default": "text"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"default": "off",
|
|
135
|
+
"description": "Traces the communication between VSCode and the eslint linter service."
|
|
136
|
+
},
|
|
137
|
+
"eslint.run": {
|
|
138
|
+
"scope": "resource",
|
|
139
|
+
"type": "string",
|
|
140
|
+
"enum": [
|
|
141
|
+
"onSave",
|
|
142
|
+
"onType"
|
|
143
|
+
],
|
|
144
|
+
"default": "onType",
|
|
145
|
+
"description": "Run the linter on save (onSave) or on type (onType)"
|
|
146
|
+
},
|
|
147
|
+
"eslint.autoFixOnSave": {
|
|
148
|
+
"scope": "resource",
|
|
149
|
+
"type": "boolean",
|
|
150
|
+
"default": false,
|
|
151
|
+
"description": "Turns auto fix on save on or off.",
|
|
152
|
+
"deprecationMessage": "The setting is deprecated. Use editor.codeActionsOnSave instead with a source.fixAll.eslint member."
|
|
153
|
+
},
|
|
154
|
+
"eslint.quiet": {
|
|
155
|
+
"scope": "resource",
|
|
156
|
+
"type": "boolean",
|
|
157
|
+
"default": false,
|
|
158
|
+
"description": "Turns on quiet mode, which ignores warnings and info diagnostics."
|
|
159
|
+
},
|
|
160
|
+
"eslint.onIgnoredFiles": {
|
|
161
|
+
"scope": "resource",
|
|
162
|
+
"type": "string",
|
|
163
|
+
"enum": [
|
|
164
|
+
"warn",
|
|
165
|
+
"off"
|
|
166
|
+
],
|
|
167
|
+
"default": "off",
|
|
168
|
+
"description": "Whether ESLint should issue a warning on ignored files."
|
|
169
|
+
},
|
|
170
|
+
"eslint.migration.2_x": {
|
|
171
|
+
"scope": "application",
|
|
172
|
+
"type": "string",
|
|
173
|
+
"enum": [
|
|
174
|
+
"off",
|
|
175
|
+
"on"
|
|
176
|
+
],
|
|
177
|
+
"default": "on",
|
|
178
|
+
"description": "Whether ESlint should migrate auto fix on save settings."
|
|
179
|
+
},
|
|
180
|
+
"eslint.useESLintClass": {
|
|
181
|
+
"scope": "resource",
|
|
182
|
+
"type": "boolean",
|
|
183
|
+
"default": false,
|
|
184
|
+
"description": "Since version 7 ESLint offers a new API call ESLint. Use it even if the old CLIEngine is available. From version 8 on forward on ESLint class is available."
|
|
185
|
+
},
|
|
186
|
+
"eslint.useFlatConfig": {
|
|
187
|
+
"scope": "resource",
|
|
188
|
+
"type": ["boolean", "null"],
|
|
189
|
+
"default": null,
|
|
190
|
+
"markdownDescription": "Controls whether flat config should be used or not. This setting requires ESLint version 8.57 or later and is interpreted according to the [ESLint Flat Config rollout plan](https://eslint.org/blog/2023/10/flat-config-rollout-plans/). This means:\n\n - *8.57.0 <= ESLint version < 9.x*: setting is honored and defaults to false\n- *9.0.0 <= ESLint version < 10.x*: settings is honored and defaults to true\n- *10.0.0 <= ESLint version*: setting is ignored. Flat configs are the default and can't be turned off."
|
|
191
|
+
},
|
|
192
|
+
"eslint.experimental.useFlatConfig": {
|
|
193
|
+
"scope": "resource",
|
|
194
|
+
"type": "boolean",
|
|
195
|
+
"default": false,
|
|
196
|
+
"deprecationMessage": "Use ESLint version 8.57 or later and `eslint.useFlatConfig` instead.",
|
|
197
|
+
"description": "Enables support of experimental Flat Config (aka eslint.config.js). Requires ESLint version >= 8.21 < 8.57.0)."
|
|
198
|
+
},
|
|
199
|
+
"eslint.useRealpaths": {
|
|
200
|
+
"scope": "resource",
|
|
201
|
+
"type": "boolean",
|
|
202
|
+
"default": false,
|
|
203
|
+
"description": "Whether ESLint should use real paths when resolving files. This is useful when working with symlinks or when the casing of file paths is inconsistent."
|
|
204
|
+
},
|
|
205
|
+
"eslint.workingDirectories": {
|
|
206
|
+
"scope": "resource",
|
|
207
|
+
"type": "array",
|
|
208
|
+
"items": {
|
|
209
|
+
"anyOf": [
|
|
210
|
+
{
|
|
211
|
+
"type": "string"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"type": "object",
|
|
215
|
+
"properties": {
|
|
216
|
+
"mode": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"enum": [
|
|
219
|
+
"auto",
|
|
220
|
+
"location"
|
|
221
|
+
],
|
|
222
|
+
"default": "location"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"required": [
|
|
226
|
+
"mode"
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"type": "object",
|
|
231
|
+
"properties": {
|
|
232
|
+
"directory": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"description": "The working directory to use if a file's path starts with this directory."
|
|
235
|
+
},
|
|
236
|
+
"changeProcessCWD": {
|
|
237
|
+
"type": "boolean",
|
|
238
|
+
"description": "Whether the process's cwd should be changed as well."
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"deprecationMessage": "Use the new !cwd form.",
|
|
242
|
+
"required": [
|
|
243
|
+
"directory"
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"type": "object",
|
|
248
|
+
"properties": {
|
|
249
|
+
"directory": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"description": "The working directory to use if a file's path starts with this directory."
|
|
252
|
+
},
|
|
253
|
+
"!cwd": {
|
|
254
|
+
"type": "boolean",
|
|
255
|
+
"description": "Set to true if ESLint shouldn't change the working directory."
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"required": [
|
|
259
|
+
"directory"
|
|
260
|
+
]
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"type": "object",
|
|
264
|
+
"properties": {
|
|
265
|
+
"pattern": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"description": "A glob pattern to match a working directory."
|
|
268
|
+
},
|
|
269
|
+
"!cwd": {
|
|
270
|
+
"type": "boolean",
|
|
271
|
+
"description": "Set to true if ESLint shouldn't change the working directory."
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"required": [
|
|
275
|
+
"pattern"
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
|
+
]
|
|
279
|
+
},
|
|
280
|
+
"markdownDescription": "Specifies how the working directories ESLint is using are computed. ESLint resolves configuration files (e.g. `eslintrc`, `.eslintignore`) relative to a working directory so it is important to configure this correctly."
|
|
281
|
+
},
|
|
282
|
+
"eslint.validate": {
|
|
283
|
+
"scope": "resource",
|
|
284
|
+
"type": ["array", "null"],
|
|
285
|
+
"items": {
|
|
286
|
+
"anyOf": [
|
|
287
|
+
{
|
|
288
|
+
"type": "string"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"type": "object",
|
|
292
|
+
"properties": {
|
|
293
|
+
"language": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"description": "The language id to be validated by ESLint."
|
|
296
|
+
},
|
|
297
|
+
"autoFix": {
|
|
298
|
+
"type": "boolean",
|
|
299
|
+
"description": "Whether auto fixes are provided for the language."
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"deprecationMessage": "Auto Fix is enabled by default. Use the single string form."
|
|
303
|
+
}
|
|
304
|
+
]
|
|
305
|
+
},
|
|
306
|
+
"default": null,
|
|
307
|
+
"description": "An array of language ids which should be validated by ESLint. If not installed ESLint will show an error."
|
|
308
|
+
},
|
|
309
|
+
"eslint.ignoreUntitled": {
|
|
310
|
+
"scope": "resource",
|
|
311
|
+
"type": "boolean",
|
|
312
|
+
"default": false,
|
|
313
|
+
"description": "If true, untitled files won't be validated by ESLint."
|
|
314
|
+
},
|
|
315
|
+
"eslint.probe": {
|
|
316
|
+
"scope": "resource",
|
|
317
|
+
"type": "array",
|
|
318
|
+
"items": {
|
|
319
|
+
"type": "string"
|
|
320
|
+
},
|
|
321
|
+
"default": [
|
|
322
|
+
"astro",
|
|
323
|
+
"civet",
|
|
324
|
+
"javascript",
|
|
325
|
+
"javascriptreact",
|
|
326
|
+
"typescript",
|
|
327
|
+
"typescriptreact",
|
|
328
|
+
"html",
|
|
329
|
+
"mdx",
|
|
330
|
+
"vue",
|
|
331
|
+
"markdown",
|
|
332
|
+
"json",
|
|
333
|
+
"jsonc",
|
|
334
|
+
"css",
|
|
335
|
+
"glimmer-js",
|
|
336
|
+
"glimmer-ts",
|
|
337
|
+
"svelte"
|
|
338
|
+
],
|
|
339
|
+
"description": "An array of language ids for which the extension should probe if support is installed."
|
|
340
|
+
},
|
|
341
|
+
"eslint.provideLintTask": {
|
|
342
|
+
"scope": "resource",
|
|
343
|
+
"type": "boolean",
|
|
344
|
+
"default": false,
|
|
345
|
+
"deprecationMessage": "This option is deprecated. Use eslint.lintTask.enable instead.",
|
|
346
|
+
"description": "Controls whether a task for linting the whole workspace will be available."
|
|
347
|
+
},
|
|
348
|
+
"eslint.lintTask.enable": {
|
|
349
|
+
"scope": "resource",
|
|
350
|
+
"type": "boolean",
|
|
351
|
+
"default": false,
|
|
352
|
+
"description": "Controls whether a task for linting the whole workspace will be available."
|
|
353
|
+
},
|
|
354
|
+
"eslint.lintTask.command": {
|
|
355
|
+
"scope": "resource",
|
|
356
|
+
"type": "string",
|
|
357
|
+
"default": "eslint",
|
|
358
|
+
"markdownDescription": "The command to run the task for linting the whole workspace. Defaults to the found eslint binary for the workspace, or 'eslint' if no binary could be found."
|
|
359
|
+
},
|
|
360
|
+
"eslint.lintTask.options": {
|
|
361
|
+
"scope": "resource",
|
|
362
|
+
"type": "string",
|
|
363
|
+
"default": ".",
|
|
364
|
+
"markdownDescription": "Command line options applied when running the task for linting the whole workspace (see https://eslint.org/docs/user-guide/command-line-interface)."
|
|
365
|
+
},
|
|
366
|
+
"eslint.runtime": {
|
|
367
|
+
"scope": "machine-overridable",
|
|
368
|
+
"type": [
|
|
369
|
+
"string",
|
|
370
|
+
"null"
|
|
371
|
+
],
|
|
372
|
+
"default": null,
|
|
373
|
+
"markdownDescription": "The location of the node binary to run ESLint under."
|
|
374
|
+
},
|
|
375
|
+
"eslint.execArgv": {
|
|
376
|
+
"scope": "machine-overridable",
|
|
377
|
+
"anyOf": [
|
|
378
|
+
{
|
|
379
|
+
"type": "array",
|
|
380
|
+
"items": {
|
|
381
|
+
"type": "string"
|
|
382
|
+
}
|
|
383
|
+
}, {
|
|
384
|
+
"type": "null"
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
"default": null,
|
|
388
|
+
"markdownDescription": "Additional exec argv argument passed to the runtime. This can for example be used to control the maximum heap space using --max_old_space_size"
|
|
389
|
+
},
|
|
390
|
+
"eslint.debug": {
|
|
391
|
+
"scope": "window",
|
|
392
|
+
"type": "boolean",
|
|
393
|
+
"default": false,
|
|
394
|
+
"markdownDescription": "Enables ESLint debug mode (same as `--debug` on the command line)"
|
|
395
|
+
},
|
|
396
|
+
"eslint.codeAction.disableRuleComment": {
|
|
397
|
+
"scope": "resource",
|
|
398
|
+
"type": "object",
|
|
399
|
+
"default": {
|
|
400
|
+
"enable": true,
|
|
401
|
+
"location": "separateLine",
|
|
402
|
+
"commentStyle": "line"
|
|
403
|
+
},
|
|
404
|
+
"properties": {
|
|
405
|
+
"enable": {
|
|
406
|
+
"type": "boolean",
|
|
407
|
+
"default": true,
|
|
408
|
+
"description": "Show the disable code actions."
|
|
409
|
+
},
|
|
410
|
+
"location": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"enum": [
|
|
413
|
+
"separateLine",
|
|
414
|
+
"sameLine"
|
|
415
|
+
],
|
|
416
|
+
"default": "separateLine",
|
|
417
|
+
"description": "Configure the disable rule code action to insert the comment on the same line or a new line."
|
|
418
|
+
},
|
|
419
|
+
"commentStyle": {
|
|
420
|
+
"type": "string",
|
|
421
|
+
"enum": [
|
|
422
|
+
"line",
|
|
423
|
+
"block"
|
|
424
|
+
],
|
|
425
|
+
"default": "line",
|
|
426
|
+
"definition": "The comment style to use when disabling a rule on a specific line."
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"additionalProperties": false,
|
|
430
|
+
"markdownDescription": "Show disable lint rule in the quick fix menu."
|
|
431
|
+
},
|
|
432
|
+
"eslint.codeAction.showDocumentation": {
|
|
433
|
+
"scope": "resource",
|
|
434
|
+
"type": "object",
|
|
435
|
+
"default": {
|
|
436
|
+
"enable": true
|
|
437
|
+
},
|
|
438
|
+
"properties": {
|
|
439
|
+
"enable": {
|
|
440
|
+
"type": "boolean",
|
|
441
|
+
"default": true,
|
|
442
|
+
"description": "Show the documentation code actions."
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"additionalProperties": false,
|
|
446
|
+
"markdownDescription": "Show open lint rule documentation web page in the quick fix menu."
|
|
447
|
+
},
|
|
448
|
+
"eslint.codeActionsOnSave.mode": {
|
|
449
|
+
"scope": "resource",
|
|
450
|
+
"type": "string",
|
|
451
|
+
"enum": [
|
|
452
|
+
"all",
|
|
453
|
+
"problems"
|
|
454
|
+
],
|
|
455
|
+
"enumDescriptions": [
|
|
456
|
+
"Fixes all possible problems in the file. This option might take some time.",
|
|
457
|
+
"Fixes only reported problems that have non-overlapping textual edits. This option runs a lot faster."
|
|
458
|
+
],
|
|
459
|
+
"default": "all",
|
|
460
|
+
"markdownDescription": "Specifies the code action mode. Possible values are 'all' and 'problems'."
|
|
461
|
+
},
|
|
462
|
+
"eslint.codeActionsOnSave.rules": {
|
|
463
|
+
"scope": "resource",
|
|
464
|
+
"anyOf": [
|
|
465
|
+
{
|
|
466
|
+
"type": "array",
|
|
467
|
+
"items": {
|
|
468
|
+
"type": "string"
|
|
469
|
+
}
|
|
470
|
+
}, {
|
|
471
|
+
"type": "null"
|
|
472
|
+
}
|
|
473
|
+
],
|
|
474
|
+
"default": null,
|
|
475
|
+
"markdownDescription": "The rules that should be executed when computing the code actions on save or formatting a file. Defaults to the rules configured via the ESLint configuration"
|
|
476
|
+
},
|
|
477
|
+
"eslint.codeActionsOnSave.options": {
|
|
478
|
+
"scope": "resource",
|
|
479
|
+
"type": "object",
|
|
480
|
+
"default": {},
|
|
481
|
+
"markdownDescription": "The ESLint options object to use on save (see https://eslint.org/docs/developer-guide/nodejs-api#eslint-class). `eslint.codeActionsOnSave.rules`, if specified, will take priority over any rule options here."
|
|
482
|
+
},
|
|
483
|
+
"eslint.format.enable": {
|
|
484
|
+
"scope": "resource",
|
|
485
|
+
"type": "boolean",
|
|
486
|
+
"default": false,
|
|
487
|
+
"description": "Enables ESLint as a formatter."
|
|
488
|
+
},
|
|
489
|
+
"eslint.rules.customizations": {
|
|
490
|
+
"items": {
|
|
491
|
+
"properties": {
|
|
492
|
+
"severity": {
|
|
493
|
+
"enum": [
|
|
494
|
+
"downgrade",
|
|
495
|
+
"error",
|
|
496
|
+
"info",
|
|
497
|
+
"default",
|
|
498
|
+
"upgrade",
|
|
499
|
+
"warn",
|
|
500
|
+
"off"
|
|
501
|
+
],
|
|
502
|
+
"type": "string"
|
|
503
|
+
},
|
|
504
|
+
"rule": {
|
|
505
|
+
"type": "string"
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
"type": "object"
|
|
509
|
+
},
|
|
510
|
+
"scope": "resource",
|
|
511
|
+
"type": "array",
|
|
512
|
+
"description": "Override the severity of one or more rules reported by this extension, regardless of the project's ESLint config. Use globs to apply default severities for multiple rules."
|
|
513
|
+
},
|
|
514
|
+
"eslint.notebooks.rules.customizations": {
|
|
515
|
+
"items": {
|
|
516
|
+
"properties": {
|
|
517
|
+
"severity": {
|
|
518
|
+
"enum": [
|
|
519
|
+
"downgrade",
|
|
520
|
+
"error",
|
|
521
|
+
"info",
|
|
522
|
+
"default",
|
|
523
|
+
"upgrade",
|
|
524
|
+
"warn",
|
|
525
|
+
"off"
|
|
526
|
+
],
|
|
527
|
+
"type": "string"
|
|
528
|
+
},
|
|
529
|
+
"rule": {
|
|
530
|
+
"type": "string"
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
"type": "object"
|
|
534
|
+
},
|
|
535
|
+
"scope": "resource",
|
|
536
|
+
"type": "array",
|
|
537
|
+
"description": "A special rules customization section for text cells in notebook documents."
|
|
538
|
+
},
|
|
539
|
+
"eslint.timeBudget.onValidation": {
|
|
540
|
+
"scope": "resource",
|
|
541
|
+
"type": "object",
|
|
542
|
+
"properties": {
|
|
543
|
+
"warn": {
|
|
544
|
+
"type": "number",
|
|
545
|
+
"default": 4000,
|
|
546
|
+
"minimum": 0,
|
|
547
|
+
"markdownDescription": "The time budget in milliseconds to spend on validation before showing a warning."
|
|
548
|
+
},
|
|
549
|
+
"error": {
|
|
550
|
+
"type": "number",
|
|
551
|
+
"default": 8000,
|
|
552
|
+
"minimum": 0,
|
|
553
|
+
"markdownDescription": "The time budget in milliseconds to spend on validation before showing an error."
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
"default": {
|
|
557
|
+
"warn": 4000,
|
|
558
|
+
"error": 8000
|
|
559
|
+
},
|
|
560
|
+
"markdownDescription": "The time budget in milliseconds to spend on validation before showing a warning or error."
|
|
561
|
+
},
|
|
562
|
+
"eslint.timeBudget.onFixes": {
|
|
563
|
+
"scope": "resource",
|
|
564
|
+
"type": "object",
|
|
565
|
+
"properties": {
|
|
566
|
+
"warn": {
|
|
567
|
+
"type": "number",
|
|
568
|
+
"default": 3000,
|
|
569
|
+
"minimum": 0,
|
|
570
|
+
"markdownDescription": "The time budget in milliseconds to spend on computing fixes before showing a warning."
|
|
571
|
+
},
|
|
572
|
+
"error": {
|
|
573
|
+
"type": "number",
|
|
574
|
+
"default": 6000,
|
|
575
|
+
"minimum": 0,
|
|
576
|
+
"markdownDescription": "The time budget in milliseconds to spend on computing fixes before showing an error."
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"default": {
|
|
580
|
+
"warn": 3000,
|
|
581
|
+
"error": 6000
|
|
582
|
+
},
|
|
583
|
+
"markdownDescription": "The time budget in milliseconds to spend on computing fixes before showing a warning or error."
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
"commands": [
|
|
588
|
+
{
|
|
589
|
+
"title": "Fix all auto-fixable Problems",
|
|
590
|
+
"category": "ESLint",
|
|
591
|
+
"command": "eslint.executeAutofix"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"title": "Create ESLint configuration",
|
|
595
|
+
"category": "ESLint",
|
|
596
|
+
"command": "eslint.createConfig"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"title": "Show Output Channel",
|
|
600
|
+
"category": "ESLint",
|
|
601
|
+
"command": "eslint.showOutputChannel"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"title": "Migrate Settings",
|
|
605
|
+
"category": "ESLint",
|
|
606
|
+
"command": "eslint.migrateSettings"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"title": "Restart ESLint Server",
|
|
610
|
+
"category": "ESLint",
|
|
611
|
+
"command": "eslint.restart"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"title": "Revalidate all open files",
|
|
615
|
+
"category": "ESLint",
|
|
616
|
+
"command": "eslint.revalidate"
|
|
617
|
+
}
|
|
618
|
+
],
|
|
619
|
+
"taskDefinitions": [
|
|
620
|
+
{
|
|
621
|
+
"type": "eslint"
|
|
622
|
+
}
|
|
623
|
+
],
|
|
624
|
+
"jsonValidation": [
|
|
625
|
+
{
|
|
626
|
+
"fileMatch": ".eslintrc",
|
|
627
|
+
"url": "https://json.schemastore.org/eslintrc"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"fileMatch": ".eslintrc.json",
|
|
631
|
+
"url": "https://json.schemastore.org/eslintrc"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"fileMatch": "package.json",
|
|
635
|
+
"url": "./package-json-schema.json"
|
|
636
|
+
}
|
|
637
|
+
],
|
|
638
|
+
"languages": [
|
|
639
|
+
{
|
|
640
|
+
"id": "ignore",
|
|
641
|
+
"extensions": [
|
|
642
|
+
".eslintignore"
|
|
643
|
+
]
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"id": "jsonc",
|
|
647
|
+
"filenames": [
|
|
648
|
+
".eslintrc.json"
|
|
649
|
+
]
|
|
650
|
+
}
|
|
651
|
+
]
|
|
652
|
+
},
|
|
653
|
+
"scripts": {
|
|
654
|
+
"vscode:prepublish": "npm run webpack",
|
|
655
|
+
"build": "npm run webpack",
|
|
656
|
+
"webpack": "npm run clean && webpack --mode production --config ./client/webpack.config.js && webpack --mode production --config ./server/webpack.config.js",
|
|
657
|
+
"webpack:dev": "npm run clean && webpack --mode none --config ./client/webpack.config.js && webpack --mode none --config ./server/webpack.config.js",
|
|
658
|
+
"esbuild": "npm run clean && node ./esbuild.js",
|
|
659
|
+
"compile": "tsc -b",
|
|
660
|
+
"compile:client": "tsc -b ./client/tsconfig.json",
|
|
661
|
+
"compile:server": "tsc -b ./server/tsconfig.json",
|
|
662
|
+
"watch": "tsc -b -w",
|
|
663
|
+
"test": "cd client && npm test && cd ..",
|
|
664
|
+
"lint": "node ./build/bin/all.js run lint",
|
|
665
|
+
"clean": "rimraf client/out && rimraf server/out",
|
|
666
|
+
"postinstall": "node ./build/bin/all.js install",
|
|
667
|
+
"symlink:lsp": "node ./build/bin/symlink.js"
|
|
668
|
+
},
|
|
669
|
+
"devDependencies": {
|
|
670
|
+
"@types/mocha": "^10.0.10",
|
|
671
|
+
"@types/node": "^20.17.9",
|
|
672
|
+
"eslint": "^9.28.0",
|
|
673
|
+
"@stylistic/eslint-plugin": "^4.4.1",
|
|
674
|
+
"@typescript-eslint/eslint-plugin": "^8.34.0",
|
|
675
|
+
"@typescript-eslint/parser": "^8.34.0",
|
|
676
|
+
"merge-options": "^3.0.4",
|
|
677
|
+
"mocha": "^11.6.0",
|
|
678
|
+
"rimraf": "^6.0.1",
|
|
679
|
+
"ts-loader": "^9.5.2",
|
|
680
|
+
"typescript": "^5.8.3",
|
|
681
|
+
"webpack": "^5.105.0",
|
|
682
|
+
"webpack-cli": "^6.0.1",
|
|
683
|
+
"shelljs": "^0.10.0",
|
|
684
|
+
"esbuild": "^0.25.5"
|
|
685
|
+
}
|
|
686
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
test.jss
|