vscode-eslint 0.0.2 → 0.0.4

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.
Files changed (181) hide show
  1. package/bin/vscode-eslint +82 -0
  2. package/client/out/client.d.ts +13 -0
  3. package/client/out/extension.d.ts +3 -0
  4. package/client/out/extension.js +2 -0
  5. package/client/out/extension.js.map +1 -0
  6. package/client/out/node-utils.d.ts +51 -0
  7. package/client/out/settings.d.ts +41 -0
  8. package/client/out/shared/customMessages.d.ts +89 -0
  9. package/client/out/shared/settings.d.ts +106 -0
  10. package/client/out/tasks.d.ts +31 -0
  11. package/client/out/tests/glob.test.d.ts +1 -0
  12. package/client/out/vscode-utils.d.ts +5 -0
  13. package/package.json +9 -2
  14. package/server/out/diff.d.ts +134 -0
  15. package/server/out/eslint.d.ts +298 -0
  16. package/server/out/eslintServer.d.ts +1 -0
  17. package/server/out/eslintServer.js +2 -0
  18. package/server/out/eslintServer.js.map +1 -0
  19. package/server/out/is.d.ts +3 -0
  20. package/server/out/languageDefaults.d.ts +6 -0
  21. package/server/out/linkedMap.d.ts +53 -0
  22. package/server/out/paths.d.ts +22 -0
  23. package/server/out/shared/customMessages.d.ts +89 -0
  24. package/server/out/shared/settings.d.ts +106 -0
  25. package/$shared/customMessages.ts +0 -113
  26. package/$shared/settings.ts +0 -189
  27. package/.CodeQL.yml +0 -5
  28. package/.azure-pipelines.yml +0 -27
  29. package/.gemini/agents/vscode-eslint.md +0 -23
  30. package/.github/commands.yml +0 -127
  31. package/.github/locker.yml +0 -6
  32. package/.github/needs_more_info.yml +0 -6
  33. package/.github/workflows/npm-publish.yml +0 -53
  34. package/.github/workflows/release-please.yml +0 -22
  35. package/.lsifrc.json +0 -4
  36. package/.vscode/launch.json +0 -20
  37. package/.vscode/settings.json +0 -52
  38. package/.vscode/spellright.dict +0 -8
  39. package/.vscode/tasks.json +0 -39
  40. package/.vscodeignore +0 -23
  41. package/CHANGELOG.md +0 -524
  42. package/SECURITY.md +0 -41
  43. package/agents.md +0 -36
  44. package/bin/vscode-eslint.js +0 -56
  45. package/build/azure-pipelines/linux/build.yml +0 -14
  46. package/build/azure-pipelines/pre-release.yml +0 -42
  47. package/build/azure-pipelines/release.yml +0 -45
  48. package/build/azure-pipelines/win32/build.yml +0 -14
  49. package/build/bin/all.js +0 -29
  50. package/build/bin/linking.js +0 -102
  51. package/build/bin/symlink.js +0 -35
  52. package/client/.mocharc.json +0 -6
  53. package/client/agents.md +0 -5
  54. package/client/package-lock.json +0 -176
  55. package/client/package.json +0 -29
  56. package/client/src/client.ts +0 -992
  57. package/client/src/extension.ts +0 -180
  58. package/client/src/node-utils.ts +0 -393
  59. package/client/src/settings.ts +0 -379
  60. package/client/src/tasks.ts +0 -186
  61. package/client/src/tests/glob.test.ts +0 -31
  62. package/client/src/vscode-utils.ts +0 -28
  63. package/client/test/mocha.opts +0 -3
  64. package/client/tsconfig.json +0 -20
  65. package/client/webpack.config.js +0 -25
  66. package/contributing.md +0 -19
  67. package/esbuild.js +0 -62
  68. package/eslint.config.js +0 -129
  69. package/history/settings_1_9_x.md +0 -110
  70. package/images/2_1_10/eslint-dialog.png +0 -0
  71. package/images/2_1_10/eslint-status.png +0 -0
  72. package/package-json-schema.json +0 -9
  73. package/playgrounds/7.0/.eslintignore +0 -1
  74. package/playgrounds/7.0/.eslintrc.json +0 -71
  75. package/playgrounds/7.0/.vscode/settings.json +0 -85
  76. package/playgrounds/7.0/app.js +0 -12
  77. package/playgrounds/7.0/build/.eslintignore +0 -1
  78. package/playgrounds/7.0/build/.eslintrc.json +0 -30
  79. package/playgrounds/7.0/build/build.js +0 -11
  80. package/playgrounds/7.0/jsconfig.json +0 -5
  81. package/playgrounds/7.0/package-lock.json +0 -2133
  82. package/playgrounds/7.0/package.json +0 -10
  83. package/playgrounds/7.0/readme.md +0 -0
  84. package/playgrounds/7.0/subDir/sub.js +0 -11
  85. package/playgrounds/7.0/subDir/test.jsx +0 -10
  86. package/playgrounds/7.0/test.js +0 -11
  87. package/playgrounds/7.0/test.sh +0 -1
  88. package/playgrounds/7.0/test.vue +0 -33
  89. package/playgrounds/7.0/test2.html +0 -8
  90. package/playgrounds/8.0/.eslintignore +0 -1
  91. package/playgrounds/8.0/.eslintrc.json +0 -71
  92. package/playgrounds/8.0/.vscode/settings.json +0 -91
  93. package/playgrounds/8.0/app.js +0 -12
  94. package/playgrounds/8.0/build/.eslintignore +0 -1
  95. package/playgrounds/8.0/build/.eslintrc.json +0 -30
  96. package/playgrounds/8.0/build/build.js +0 -11
  97. package/playgrounds/8.0/jsconfig.json +0 -5
  98. package/playgrounds/8.0/package-lock.json +0 -2321
  99. package/playgrounds/8.0/package.json +0 -10
  100. package/playgrounds/8.0/readme.md +0 -17
  101. package/playgrounds/8.0/subDir/sub.js +0 -11
  102. package/playgrounds/8.0/subDir/test.jsx +0 -10
  103. package/playgrounds/8.0/test.ipynb +0 -49
  104. package/playgrounds/8.0/test.js +0 -3
  105. package/playgrounds/8.0/test.sh +0 -1
  106. package/playgrounds/8.0/test.vue +0 -33
  107. package/playgrounds/8.0/test2.html +0 -8
  108. package/playgrounds/9.0/flat/.vscode/settings.json +0 -3
  109. package/playgrounds/9.0/flat/app.js +0 -12
  110. package/playgrounds/9.0/flat/dist/ignore.js +0 -12
  111. package/playgrounds/9.0/flat/eslint.config.js +0 -61
  112. package/playgrounds/9.0/flat/package-lock.json +0 -1053
  113. package/playgrounds/9.0/flat/package.json +0 -9
  114. package/playgrounds/9.0/rc/.eslintrc.json +0 -57
  115. package/playgrounds/9.0/rc/.vscode/settings.json +0 -3
  116. package/playgrounds/9.0/rc/app.js +0 -12
  117. package/playgrounds/9.0/rc/package-lock.json +0 -1345
  118. package/playgrounds/9.0/rc/package.json +0 -9
  119. package/playgrounds/flat-config/.vscode/settings.json +0 -22
  120. package/playgrounds/flat-config/app.js +0 -12
  121. package/playgrounds/flat-config/eslint.config.js +0 -51
  122. package/playgrounds/flat-config/package-lock.json +0 -2733
  123. package/playgrounds/flat-config/package.json +0 -12
  124. package/playgrounds/flat-config/sub/sub.js +0 -2
  125. package/playgrounds/flat-config/test.ts +0 -7
  126. package/playgrounds/flat-config/tsconfig.json +0 -11
  127. package/playgrounds/flat-config-fail/f1/app.js +0 -12
  128. package/playgrounds/flat-config-fail/f1/eslint.config.js +0 -51
  129. package/playgrounds/flat-config-fail/package-lock.json +0 -1683
  130. package/playgrounds/flat-config-fail/package.json +0 -11
  131. package/playgrounds/flat-config-mjs/.vscode/settings.json +0 -21
  132. package/playgrounds/flat-config-mjs/app.js +0 -12
  133. package/playgrounds/flat-config-mjs/eslint.config.mjs +0 -53
  134. package/playgrounds/flat-config-mjs/package-lock.json +0 -2860
  135. package/playgrounds/flat-config-mjs/package.json +0 -11
  136. package/playgrounds/flat-config-mjs/sub/sub.js +0 -2
  137. package/playgrounds/flat-config-mjs/test.ts +0 -7
  138. package/playgrounds/flat-config-mjs/tsconfig.json +0 -11
  139. package/playgrounds/load-eslint/.vscode/settings.json +0 -21
  140. package/playgrounds/load-eslint/app.js +0 -12
  141. package/playgrounds/load-eslint/eslint.config.js +0 -51
  142. package/playgrounds/load-eslint/package-lock.json +0 -2860
  143. package/playgrounds/load-eslint/package.json +0 -11
  144. package/playgrounds/load-eslint/sub/sub.js +0 -2
  145. package/playgrounds/load-eslint/test.ts +0 -7
  146. package/playgrounds/load-eslint/tsconfig.json +0 -11
  147. package/playgrounds/noLib/test.js +0 -22
  148. package/playgrounds/noWD/.vscode/settings.json +0 -2
  149. package/playgrounds/noWD/src/.eslintrc.json +0 -18
  150. package/playgrounds/noWD/src/package-lock.json +0 -2812
  151. package/playgrounds/noWD/src/package.json +0 -12
  152. package/playgrounds/noWD/src/test.js +0 -3
  153. package/playgrounds/notebooks/notebook.ipynb +0 -7072
  154. package/playgrounds/notebooks/notebook2.ipynb +0 -20
  155. package/playgrounds/testing.code-workspace +0 -28
  156. package/playgrounds/ts/.eslintrc.base.json +0 -23
  157. package/playgrounds/ts/.eslintrc.json +0 -191
  158. package/playgrounds/ts/.vscode/settings.json +0 -12
  159. package/playgrounds/ts/package-lock.json +0 -2687
  160. package/playgrounds/ts/package.json +0 -11
  161. package/playgrounds/ts/test copy.ts +0 -4
  162. package/playgrounds/ts/test.ipynb +0 -49
  163. package/playgrounds/ts/test.ts +0 -4
  164. package/playgrounds/ts/test.tsx +0 -14
  165. package/playgrounds/ts/tsconfig.json +0 -100
  166. package/server/agents.md +0 -9
  167. package/server/package-lock.json +0 -93
  168. package/server/package.json +0 -32
  169. package/server/src/diff.ts +0 -1079
  170. package/server/src/eslint.ts +0 -1471
  171. package/server/src/eslintServer.ts +0 -865
  172. package/server/src/is.ts +0 -18
  173. package/server/src/languageDefaults.ts +0 -40
  174. package/server/src/linkedMap.ts +0 -448
  175. package/server/src/paths.ts +0 -128
  176. package/server/src/thenable.d.ts +0 -5
  177. package/server/tsconfig.json +0 -21
  178. package/server/webpack.config.js +0 -25
  179. package/shared.webpack.config.js +0 -59
  180. package/tsconfig.base.json +0 -9
  181. package/tsconfig.json +0 -21
package/CHANGELOG.md DELETED
@@ -1,524 +0,0 @@
1
- ### Version 3.0.24 - release
2
-
3
- - [Bug fixes](https://github.com/microsoft/vscode-eslint/issues?q=is%3Aissue%20state%3Aclosed%20milestone%3A3.20.0)
4
-
5
- ### Version 3.0.22 - release
6
-
7
- - Release number skipped
8
-
9
- ### Version 3.0.21 - pre-release
10
-
11
- - move to latest LSP libraries
12
- - `eslint.quite` blocks info messages as well.
13
-
14
- ### Version 3.0.20 - release
15
-
16
- - [Bug fixes](https://github.com/microsoft/vscode-eslint/issues?q=is%3Aissue%20state%3Aclosed%20milestone%3A3.20.0)
17
-
18
- - [PRs](https://github.com/microsoft/vscode-eslint/pulls?q=is%3Apr+milestone%3A3.20.0+is%3Aclosed)
19
-
20
- ### Version 3.0.19 - pre-release
21
-
22
- - move to latest LSP libraries
23
-
24
- ### Version 3.0.17 - pre-release
25
-
26
- - add probe support for css
27
-
28
- ### Version 3.0.16 - release
29
-
30
- - [Bug fixes](https://github.com/microsoft/vscode-eslint/issues?q=is%3Aissue%20state%3Aclosed%20milestone%3A3.16.0)
31
-
32
- - same as 3.15.0 - pre-release
33
-
34
- ### Version 3.0.15 - pre-release
35
-
36
- - move to latest LSP libraries
37
-
38
- ### Version 3.0.13 - pre-release
39
-
40
- - move to latest LSP libraries
41
-
42
- ### Version 3.0.11 - pre-release
43
-
44
- - Enforcement of the validate setting. If the `eslint.validate` setting is specified only files in that list will be validated. For example, a setting of the form
45
- ```
46
- "eslint.validate": [
47
- "javascript"
48
- ]
49
- ```
50
- will only validate JavaScript files. This is comparable to providing extensions on the command line.
51
-
52
- ### Version 3.0.10 - Release
53
-
54
- - Bump VS Code version to 1.90 to ensure NodeJS 20.
55
-
56
- ### Version 3.0.8 - Release
57
-
58
- - Same as 3.0.7 - pre-release
59
-
60
- ### Version 3.0.7 - pre-release
61
-
62
- - bug fixes to better support flat configs.
63
-
64
- ### Version 3.0.5 - pre-release
65
-
66
- - Support for the new ESLint flat config files has improved. See README.MD for a detailed description of the changes.
67
-
68
- ### Version 3.0.1 - pre-release
69
-
70
- - converted the server to use diagnostic pull instead of push.
71
- - files will be revalidated on focus gain.
72
- - Add a command `ESLint: Revalidate all open files` to revalidate all open files.
73
- - Probing support for [Astro](https://github.com/microsoft/vscode-eslint/pull/1795), [MDX](https://github.com/microsoft/vscode-eslint/pull/1794) and [JSON](https://github.com/microsoft/vscode-eslint/pull/1787)
74
- - various [bug fixes](https://github.com/microsoft/vscode-eslint/issues?q=is%3Aclosed+milestone%3ANext)
75
-
76
- ### Version 2.4.4
77
-
78
- - same as 2.4.3 - pre-release
79
-
80
- ### Version 2.4.3 - pre-release
81
-
82
- - various [bug fixes](https://github.com/microsoft/vscode-eslint/milestone/74?closed=1)
83
-
84
- ### Version 2.4.2
85
-
86
- - same as 2.4.1 pre-release.
87
-
88
- ### Version 2.4.1 - Pre-release
89
-
90
- - various [bug fixes](https://github.com/microsoft/vscode-eslint/milestone/51?closed=1)
91
-
92
- ### Version 2.4.0 (same as 2.3.5 - Pre-release)
93
-
94
- - added settings options to control the time budget for validation and fix on save before a
95
- warning or error is raised. The settings are `eslint.timeBudget.onValidation` and `eslint.timeBudget.onFixes`
96
- - make server `untitled` agnostic
97
- - the extension uses now VS Code's language status indicator
98
- - the language status indicator now informs about long linting or fix on save times.
99
- - the setting `eslint.alwaysShowStatus` got removed since the status is now shown as a language status indicator.
100
- - support for flat config files
101
- - support for single problem underline.
102
- - various [bug fixes](https://github.com/microsoft/vscode-eslint/issues?q=is%3Aclosed+milestone%3A2.4.0)
103
-
104
- ### Version 2.3.5 - Pre-release
105
-
106
- - added settings options to control the time budget for validation and fix on save before a
107
- warning or error is raised. The settings are `eslint.timeBudget.onValidation` and `eslint.timeBudget.onFixes`
108
-
109
- ### Version 2.3.3 - Pre-release
110
-
111
- - make server `untitled` agnostic
112
-
113
- ### Version 2.3.1 - Pre-release (internal only)
114
-
115
- - the extension uses now VS Code's language status indicator
116
- - the language status indicator now informs about long linting or fix on save times.
117
- - the setting `eslint.alwaysShowStatus` got removed since the status is now shown as a language status indicator.
118
-
119
- ### Version 2.2.6
120
-
121
- - added support for validating single notebook document cells if the language is supported by ESLint
122
- - various [bug fixes](https://github.com/microsoft/vscode-eslint/milestone/47?closed=1)
123
-
124
- ### 2.2.2
125
-
126
- - renamed the setting `eslint.runtime.execArgv` to `eslint.execArgv`. This is breaking but can't be fixed different due to how VS Code handles settings. See also [Issue 1358](https://github.com/microsoft/vscode-eslint/issues/1358)
127
-
128
- ### 2.2.1
129
-
130
- Extended support for ESLint V8.0. This release also provides an option to use the new ESLint class API introduced in version 7 of the ESLint npm module. The corresponding setting is `eslint.useESLintClass`. In addition the rules taken into consideration during code action on save can now be configured. However this feature requires the new ESLint class API. So you either need to use ESLint version 8 or version 7 with `"eslint.useESLintClass": true`.
131
-
132
- ### 2.2.0
133
-
134
- - Internal insider release.
135
-
136
- ### 2.1.25
137
-
138
- - Added support for ESLint v8 Beta
139
- - Various [bug fixes](https://github.com/microsoft/vscode-eslint/issues?q=is%3Aclosed+milestone%3A2.1.25)
140
-
141
- ### 2.1.24
142
-
143
- - Internal insider release.
144
-
145
- ### 2.1.23
146
-
147
- - Fixes [Server should provide default result for code actions so that canceled requests can be removed from queue](https://github.com/microsoft/vscode-eslint/issues/1283)
148
-
149
- ### 2.1.22
150
-
151
- - adapt VS Code's workspace trust model. As a consequence the custom dialog ESLint introduced in version `2.1.7` got removed.
152
- - Various [bug fixes](https://github.com/microsoft/vscode-eslint/issues?q=milestone%3A2.1.22+)
153
-
154
-
155
- ### 2.1.21
156
-
157
- - Internal insider release.
158
-
159
- ### 2.1.20
160
-
161
- - Merged [Implement eslint.rules.customizations - with overrides](https://github.com/microsoft/vscode-eslint/pull/1164)
162
-
163
- ### 2.1.19
164
-
165
- - fixed [Using `eslint.nodePath` globally rather than locally, yet on every new window: `The eslint.nodePath setting requires user confirmation. To do so execute the Select Node Path command.`](https://github.com/microsoft/vscode-eslint/issues/1203)
166
-
167
- ### 2.1.18
168
-
169
- - warn about nodePath values being defined separately in the workspace folder although a multi workspace folder setup is open.
170
-
171
- ### 2.1.17
172
-
173
- - add user confirmation for the `eslint.runtime` and the `eslint.nodePath` setting
174
- - fixed [command to restart server or plugins without quitting vscode](https://github.com/microsoft/vscode-eslint/issues/164)
175
-
176
- ### 2.1.16
177
-
178
- - Updated Readme document.
179
-
180
- ### 2.1.15
181
-
182
- - Internal insider release.
183
-
184
- ### 2.1.14
185
-
186
- - Update to version 7.0.0 of the LSP libraries
187
- - Various [bug fixes](https://github.com/microsoft/vscode-eslint/issues?q=is%3Aissue+is%3Aclosed+milestone%3A2.1.14).
188
-
189
- ### 2.1.13
190
-
191
- - [v2.1.10 - Extension 'ESlint' cannot format file](https://github.com/microsoft/vscode-eslint/issues/1086)
192
-
193
- ### 2.1.11 & 2.1.12
194
-
195
- - Internal insider release.
196
-
197
- ### 2.1.10
198
-
199
- - Add an 'Always Allow' to the library confirmation dialog added in 2.1.7. Also added a status indication show the ESLint library decision mode.
200
- - Fixed vulnerability described in [CVE-2021-27081](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-27081)
201
-
202
- ### 2.1.9
203
-
204
- - Internal insider release.
205
-
206
- ### 2.1.8
207
-
208
- - Polish the message of the confirmation dialog that was introduced in 2.1.7
209
- - Fix bug that caused the confirmation dialog to pop up for all open editors when not trusting the local version of VS Code
210
-
211
- ### 2.1.7
212
-
213
- - Ask the user for confirmation before executing the code from an installed ESLint library. Also added commands to manage the decisions made for the ESLint libraries.
214
-
215
- ### 2.1.6
216
-
217
- - Update LSP libraries
218
-
219
- ### 2.1.5
220
-
221
- - [UnhandledPromiseRejectionWarning: Error: Request workspace/configuration failed with message: Cannot read property 'source.fixAll.eslint' of null](https://github.com/microsoft/vscode-eslint/issues/950)
222
- - ["Do you want Code to open the external website?" on ESLint errors](https://github.com/microsoft/vscode-eslint/issues/949)
223
- - [all suggestions being applied on save](https://github.com/microsoft/vscode-eslint/issues/947)
224
- - [Error: "Cannot read property 'source.fixAll.eslint' of null"](https://github.com/microsoft/vscode-eslint/issues/945)
225
-
226
- ### 2.1.4
227
-
228
- - Was used as an insider preview release.
229
-
230
- ### 2.1.3
231
-
232
- - [FixAll on save doesn't pick up file change from organize imports](https://github.com/microsoft/vscode-eslint/issues/939)
233
-
234
- ### 2.1.2
235
-
236
- - [Adopt new link support in diagnostics](https://github.com/microsoft/vscode-eslint/issues/911)
237
-
238
- ### 2.1.1
239
-
240
- - [Support for ESLint suggest API](https://github.com/microsoft/vscode-eslint/pull/814)
241
-
242
- ### 2.0.15
243
-
244
- - Update to latest LSP libraries
245
-
246
- ### 2.0.14
247
-
248
- - [Auto fix made double comma to fix trailing comma](https://github.com/microsoft/vscode-eslint/issues/871)
249
-
250
- ### 2.0.13
251
-
252
- - Fixes [no validation of .vue files (2.0.12)](https://github.com/microsoft/vscode-eslint/issues/870)
253
-
254
- ### 2.0.12
255
-
256
- - Improved performance for code actions on save by reusing fixes for already known problems.
257
- - Added a setting `eslint.codeActionsOnSave.mode` to revive the 1.9.x version behavior of only fixing already known problems on save.
258
- - Bug fixes:
259
- - [Can't lint .ts files when use vue-eslint-parser](https://github.com/microsoft/vscode-eslint/issues/864)
260
-
261
- ### 2.0.11
262
-
263
- - Fixes [Eslint not working when open above level directory](https://github.com/microsoft/vscode-eslint/issues/854)
264
-
265
- ### 2.0.10
266
-
267
- - Various bug fixes especially around settings migration.
268
-
269
- ### 2.0.4
270
-
271
- A new major version of the extension. Major improvements are around code actions on save, formatting, working directory setup and validating of TypeScript files.
272
-
273
- ### 1.9.2
274
-
275
- - Moved to latest LSP libraries
276
- - Fixed [Document change might not cause re-validation. Results in stale errors](https://github.com/microsoft/vscode-eslint/issues/758)
277
- - Merged [Fix None position values in publishDiagnostics message](https://github.com/microsoft/vscode-eslint/pull/753)
278
-
279
- ### 1.9.1
280
-
281
- - Moved to latest LSP libraries
282
- - Add experimental support for delta document sync
283
- - Add support for [eslint.lintTask.options] (https://github.com/microsoft/vscode-eslint/pull/698)
284
- - Add support for `eslint.experimental.incrementalSync` which enable incremental document synchronization for improved performance.
285
-
286
- ### 1.9.0
287
-
288
- - Moved to latest LSP libraries
289
- - Added support for [eslint.quiet](https://github.com/microsoft/vscode-eslint/pull/661)
290
-
291
- ### 1.8.2
292
-
293
- - Fix version mismatch problem between LSP client lib and VS Code version.
294
-
295
- ### 1.8.1
296
-
297
- - Moved to latest LSP libraries
298
- - Web pack extension and server
299
- - Fixes [Extension causes high CPU load](https://github.com/Microsoft/vscode-eslint/issues/620)
300
-
301
- ### 1.8.0
302
-
303
- - Moved to latest LSP libraries
304
- - Merged in [PR #588](https://github.com/Microsoft/vscode-eslint/pull/588/) which adds to turn off the actions to disable rules per line and to open the documentation.
305
- - Merged in [PR #572](https://github.com/Microsoft/vscode-eslint/pull/572) which adds support for pnpm.
306
-
307
- ### 1.7.0
308
-
309
- - Merged in [PR #530](https://github.com/Microsoft/vscode-eslint/pull/530) which adds support to disable a rule per line or for the whole file as well as navigating to the documentation.
310
-
311
- ### 1.6.1
312
-
313
- - Fixes [#558](https://github.com/Microsoft/vscode-eslint/issues/558) to adopt new functionality in VS Code 1.28
314
-
315
- ### 1.6.0
316
-
317
- - Adopt the LSP JSON tracing options from the LSP libraries to enable better tracing support
318
-
319
- ### 1.5.0
320
-
321
- - Allow setting the node runtime to use for the language server. Fixes #345 [PR #516](https://github.com/Microsoft/vscode-eslint/pull/516)
322
- - eslintignore comment syntax highlighting [PR #473](https://github.com/Microsoft/vscode-eslint/pull/473)
323
-
324
- ### 1.4.14
325
-
326
- - Include `semver` for client
327
-
328
- ### 1.4.13
329
-
330
- - Upgraded to latest LSP libraries to handle process spawn / fork crashes under Electron 2.x
331
-
332
- ### 1.4.12
333
-
334
- - Upgrade to latest version of the LSP libraries
335
- - Fixes [ESLint server crashed 5 times in the last 3 minutes. the server will not be restarted.](https://github.com/Microsoft/vscode-eslint/issues/437)
336
-
337
- ### 1.4.11
338
-
339
- Internal version to track down [ESLint server crashed 5 times in the last 3 minutes. the server will not be restarted.](https://github.com/Microsoft/vscode-eslint/issues/437)
340
-
341
- ### 1.4.10
342
-
343
- - [Add Command to create a YAML configuration](https://github.com/Microsoft/vscode-eslint/issues/409)
344
-
345
- ### 1.4.9
346
-
347
- - Using latest vscode-languageclient library to fix problems with server restarts and double change notifications.
348
-
349
- ### 1.4.8
350
-
351
- - Using latest vscode-languageclient library to get rid of unnecessary console.log statements.
352
-
353
- ### 1.4.7
354
-
355
- - [extension not working](https://github.com/Microsoft/vscode-eslint/issues/365)
356
- - [Create a task provider for linting the whole workspace](https://github.com/Microsoft/vscode-eslint/pull/410)
357
-
358
- ### 1.4.6
359
-
360
- - [Rename server.js to a more specific name so that ESLint is easily recognized by code --status](https://github.com/Microsoft/vscode-eslint/issues/406)
361
-
362
- ### 1.4.5
363
-
364
- - [UnhandledPromiseRejectionWarning when renaming .eslintrc.json](https://github.com/Microsoft/vscode-eslint/issues/403)
365
- - [update error message and add a hint to update yarn setting if using yarn](https://github.com/Microsoft/vscode-eslint/pull/390)
366
-
367
- ### 1.4.4
368
-
369
- - [request: better error message if ESLint crashes](https://github.com/Microsoft/vscode-eslint/issues/391)
370
-
371
- ### 1.4.3
372
-
373
- - Moved to version 3.5.0 of the vscode-languageserver-node libraries.
374
-
375
- ### 1.4.2
376
-
377
- - [ESLint should show a warning icon when something failed in the status bar](https://github.com/Microsoft/vscode-eslint/issues/328)
378
-
379
- ### 1.4.1
380
-
381
- - small setting description fix.
382
- - tagged extension as multi root ready.
383
-
384
- ### 1.4.0
385
-
386
- - Add support for [Yarn](https://yarnpkg.com/lang/en/). To use yarn instead of npm with the ESLint extension set the settings `"eslint.packageManager": "yarn"`. To use npm set the value to `"npm"`.
387
-
388
- ### 1.3.2
389
-
390
- - [Latest update appears to have broken nodePath specification ](https://github.com/Microsoft/vscode-eslint/issues/298)
391
-
392
- ### 1.3.1
393
-
394
- - [Failed to lint Untitled JavaScript file.](https://github.com/Microsoft/vscode-eslint/issues/295)
395
-
396
- ### 1.3.0
397
-
398
- - Add support for multi workspace folder setups. Adding this support required a major code change both on the extension and the server side. So if you recognized problems with this version please report them as quick as possible in the [GitHub repository](https://github.com/Microsoft/vscode-eslint).
399
-
400
- Version 1.3.0 of the ESLint extension requires at least version 1.16 of VS Code.
401
-
402
- ### 1.2.11
403
-
404
- - [(Insiders/1.2.10) "Cannot read property 'then' of undefined](https://github.com/Microsoft/vscode-eslint/issues/240)
405
-
406
- ### 1.2.10
407
-
408
- Performance work around code actions and validation. Fixed:
409
-
410
- - [Slowdown on code assist with ESLint enabled](https://github.com/Microsoft/vscode-eslint/issues/215)
411
-
412
- ### 1.2.9
413
-
414
- This version was an internal test release which wasn't available in the market place
415
-
416
- ### 1.2.8
417
-
418
- - [Linting is still enabled when viewing git diff.](https://github.com/Microsoft/vscode-eslint/issues/216)
419
-
420
- ### 1.2.7
421
-
422
- - [Don't lint git diff.](https://github.com/Microsoft/vscode-eslint/issues/200)
423
-
424
- ### 1.2.6
425
-
426
- - [Do not always run ESLint from the project's root directory](https://github.com/Microsoft/vscode-eslint/issues/196)
427
- - [baseDir should be an absolute path](https://github.com/Microsoft/vscode-eslint/issues/202)
428
-
429
-
430
- ### <a name="RN125"></a>1.2.5
431
-
432
- - Validating a single file (no workspace folder open) will set the working directory to the directory containing the file.
433
- - Added support for working directories. ESLint resolves configuration files relative to a working directory. This new settings allows users to control which working directory is used for which files. Consider the following setups:
434
-
435
- ```
436
- client/
437
- .eslintignore
438
- .eslintrc.json
439
- client.js
440
- server/
441
- .eslintignore
442
- .eslintrc.json
443
- server.js
444
- ```
445
-
446
- Then using the setting:
447
- ```json
448
- "eslint.workingDirectories": [
449
- "./client", "./server"
450
- ]
451
- ```
452
- will validate files inside the server directory with the server directory as the current working directory. Same for files in the client directory. If the setting is omitted the working directory is the workspace folder.
453
-
454
-
455
- ### 1.2.4
456
-
457
- - fixes [.eslintignore is completely ignored](https://github.com/Microsoft/vscode-eslint/issues/198)
458
- - reverted fix for [Does not respect nested eslintignore files](https://github.com/Microsoft/vscode-eslint/issues/111) since it broke the use case of a single global .eslintrc file
459
-
460
- ### 1.2.3
461
-
462
- - [Does not respect nested eslintignore files](https://github.com/Microsoft/vscode-eslint/issues/111)
463
- - [eslintrc configuration cascading not being honored ](https://github.com/Microsoft/vscode-eslint/issues/97)
464
- - [autoFixOnSave not working with eslint.run=onSave](https://github.com/Microsoft/vscode-eslint/issues/158)
465
- - [autoFixOnSave not listed under Settings Options in Readme](https://github.com/Microsoft/vscode-eslint/issues/188)
466
-
467
- ### 1.2.2
468
-
469
- - Added configuration options to enable code actions and auto fix on save selectively per language. In release 1.2.1 code actions and auto fix on save very still only
470
- available for JavaScript. In 1.2.2 you can now enable this selectively per language. For compatibility it is enabled by default for JavaScript and disabled by default for all
471
- other languages. The reason is that I encounter cases for non JavaScript file types where the computed fixes had wrong positions resulting in 'broken' documents. To enable it simply
472
- provide an object literal in the validate setting with the properties `language` and `autoFix` instead of a simple `string`. An example is:
473
- ```json
474
- "eslint.validate": [ "javascript", "javascriptreact", { "language": "html", "autoFix": true } ]
475
- ```
476
-
477
- ### <a name="RN121"></a>1.2.1
478
-
479
- - Added support to validate file types other than JavaScript. To enable this, you need to do the following:
480
- - Configure ESLint with an additional plugin to do the actual validation. For example, to validate HTML files install
481
- `eslint-plugin-html` using `npm install eslint-plugin-html --save-dev` and update the ESLint configuration (e.g. .eslintrc.json file)
482
- with `"plugin": [ "html" ]`.
483
- - Add the corresponding language identifier to the `eslint.validate` setting. Something like `"eslint.validate": [ "javascript", "javascriptreact", "html" ]`.
484
- If the setting is missing, it defaults to `["javascript", "javascriptreact"]`
485
-
486
- Please note that code actions and auto fix on save is still only available for JavaScript. The reason is that I detected position problems with fixes contributed by plugins
487
- resulting in broken source code when applied.
488
-
489
- ### 1.1.0
490
-
491
- - Supports more than one ESLint module installation in a workspace. This eases working with typical client / server setups where ESLint is installed
492
- in a `node_modules` folder in the `server` and the `client` directory.
493
- - Improved error handling if a plugin can't be loaded.
494
- - Added commands to enable and disable ESLint.
495
-
496
- ### 1.0.8
497
-
498
- - Supports auto fix on save. Needs to be enabled via `"eslint.autoFixOnSave": true`. Please note that auto fix on save will only happen
499
- if the save happened manually or via focus lost. This is consistent with VS Code's format on save behavior. Auto fix on save requires
500
- VS Code version 1.6 or newer.
501
-
502
- ### 1.0.7
503
-
504
- - Fixed problem with validating package.json when editing .eslintrc.* files.
505
-
506
- ### 1.0.5
507
-
508
- - Moving to official 2.5.0 language server libraries.
509
-
510
- ### 1.0.4
511
-
512
- - Bug fixing: ESLint is validating package.json files
513
-
514
- ### 1.0.3
515
-
516
- - Errors in configuration files are only shown in a status message if the file is not open in the editor. Otherwise message are shown in the output channel only.
517
-
518
- ### 1.0.2
519
-
520
- - Added a status bar item to inform the user about problems with ESLint. A message box only appears if the user attention is required.
521
- - Improved handling of missing corrupted configuration files.
522
- - The ESLint package is now loaded from parent folders as well.
523
- - Added an action to create a .eslintrc.json file.
524
-
package/SECURITY.md DELETED
@@ -1,41 +0,0 @@
1
- <!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 BLOCK -->
2
-
3
- ## Security
4
-
5
- Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
6
-
7
- If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.
8
-
9
- ## Reporting Security Issues
10
-
11
- **Please do not report security vulnerabilities through public GitHub issues.**
12
-
13
- Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).
14
-
15
- If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).
16
-
17
- You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
18
-
19
- Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20
-
21
- * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22
- * Full paths of source file(s) related to the manifestation of the issue
23
- * The location of the affected source code (tag/branch/commit or direct URL)
24
- * Any special configuration required to reproduce the issue
25
- * Step-by-step instructions to reproduce the issue
26
- * Proof-of-concept or exploit code (if possible)
27
- * Impact of the issue, including how an attacker might exploit the issue
28
-
29
- This information will help us triage your report more quickly.
30
-
31
- If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs.
32
-
33
- ## Preferred Languages
34
-
35
- We prefer all communications to be in English.
36
-
37
- ## Policy
38
-
39
- Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd).
40
-
41
- <!-- END MICROSOFT SECURITY.MD BLOCK -->
package/agents.md DELETED
@@ -1,36 +0,0 @@
1
- ## High-Level Overview
2
-
3
- The extension integrates ESLint into VS Code by implementing a ESLint server using the [Language Server Protocol (LSP)](https://microsoft.github.io/language-server-protocol/).
4
-
5
- Key goals:
6
- * Defer activation until needed (lazy activation based on opened documents / settings).
7
- * Support multiple workspace folders & dynamic working directory inference.
8
- * Abstract ESLint version / API differences (CLIEngine vs ESLint class / flat config) transparently.
9
- * Provide rich code actions (fix all, rule disable, suggestions) and formatting integration.
10
- * Handle notebooks and non-file schemes where possible.
11
-
12
-
13
- ## Repository Structure (Relevant Directories)
14
-
15
- | Path | Purpose |
16
- |------|---------|
17
- | `package.json` | Extension manifest, contributes settings/commands/tasks, build scripts. |
18
- | `client/` | Extension (frontend) code – activation, LSP client, task provider, status integration. |
19
- | `server/` | LSP server implementation – lint orchestration, diagnostics, code actions. |
20
- | `$shared/` | Shared protocol message & settings types. This folder is symlinked into `./client/src/shared` and `./server/src/shared`. |
21
- | `build/` | CI scripts, helper Node scripts (`bin/all.js`, install/link steps). |
22
- | `playgrounds/` | Sample projects used for manual testing across ESLint versions & config styles. |
23
- | `images/` | Assets for marketplace/readme. |
24
-
25
- ## Settings
26
-
27
- Settings are retrieved using a scope where the scope can be global or per resource (folder or file). Therefore settings must never be stored in globals on the server side. The always need to be managed as `TextDocumentSettings` which are cached by the resource path.
28
-
29
- To add a new settings follow these steps:
30
-
31
- 1. Add schema in root `package.json` under `contributes.configuration.properties`. New settings should default to a falsify value if not specified otherwise. All setting keys must be prefixed with `eslint`
32
- 2. Extend `ConfigurationSettings` under `$shared/settings`.
33
- 3. Map retrieval in `client/src/client.ts` `readConfiguration()`
34
- 4. Use setting inside `eslint.ts` logic (e.g., adapt `validate()` or `resolveSettings()`).
35
-
36
- ## Design Decisions
@@ -1,56 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /*---------------------------------------------------------------------------------------------
4
- * Copyright (c) Microsoft Corporation. All rights reserved.
5
- * Licensed under the MIT License. See License.txt in the project root for license information.
6
- *--------------------------------------------------------------------------------------------*/
7
-
8
- 'use strict';
9
-
10
- const path = require('path');
11
- const { spawn } = require('child_process');
12
-
13
- function usage(exitCode = 0) {
14
- const msg = [
15
- 'vscode-eslint (LSP server)',
16
- '',
17
- 'Usage:',
18
- ' vscode-eslint --stdio',
19
- '',
20
- 'Options:',
21
- ' --stdio Use stdio transport (LSP over JSON-RPC on stdin/stdout)',
22
- ' -h, --help Show this help',
23
- ].join('\n');
24
- if (exitCode === 0) {
25
- process.stdout.write(msg + '\n');
26
- } else {
27
- process.stderr.write(msg + '\n');
28
- }
29
- process.exit(exitCode);
30
- }
31
-
32
- const args = process.argv.slice(2);
33
- if (args.includes('-h') || args.includes('--help')) {
34
- usage(0);
35
- }
36
-
37
- const wantsStdio = args.includes('--stdio');
38
- if (!wantsStdio) {
39
- process.stderr.write('error: missing required --stdio\n\n');
40
- usage(2);
41
- }
42
-
43
- // Run the bundled server produced by server/webpack.config.js
44
- const serverEntry = path.resolve(__dirname, '..', 'server', 'out', 'eslintServer.js');
45
-
46
- const child = spawn(process.execPath, [serverEntry], {
47
- stdio: 'inherit'
48
- });
49
-
50
- child.on('exit', (code, signal) => {
51
- if (signal) {
52
- process.exitCode = 1;
53
- return;
54
- }
55
- process.exitCode = code ?? 0;
56
- });
@@ -1,14 +0,0 @@
1
- steps:
2
- - task: NodeTool@0
3
- inputs:
4
- versionSpec: '20.14.0'
5
- displayName: 'Use Node.js 20.14.0'
6
-
7
- - script: |
8
- npm ci
9
- displayName: 'Install dependencies'
10
-
11
- - script: |
12
- npm run lint
13
- npm run compile
14
- displayName: 'Lint & Compile'