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/.vscodeignore
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.vscode/**
|
|
2
|
+
.github/**
|
|
3
|
+
**/*.ts
|
|
4
|
+
**/*.map
|
|
5
|
+
.gitignore
|
|
6
|
+
**/tsconfig.json
|
|
7
|
+
**/tsconfig.base.json
|
|
8
|
+
**/tslint.json
|
|
9
|
+
contributing.md
|
|
10
|
+
.azure-pipelines.yml
|
|
11
|
+
shared.webpack.config.js
|
|
12
|
+
.eslintignore
|
|
13
|
+
eslint.config.js
|
|
14
|
+
.lsifrc.json
|
|
15
|
+
build/**
|
|
16
|
+
*.zip
|
|
17
|
+
*.vsix
|
|
18
|
+
client/**
|
|
19
|
+
!client/out/extension.js
|
|
20
|
+
server/**
|
|
21
|
+
!server/out/eslintServer.js
|
|
22
|
+
playgrounds/**
|
|
23
|
+
history/**
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,524 @@
|
|
|
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/License.txt
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Copyright (c) Microsoft Corporation
|
|
2
|
+
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
MIT License
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
|
|
8
|
+
(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,
|
|
9
|
+
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do
|
|
10
|
+
so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
15
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
|
16
|
+
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
17
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|