@volar/eslint 2.4.23 → 2.4.25
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/index.d.ts +1 -1
- package/index.js +4 -1
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { LanguagePlugin } from '@volar/language-core';
|
|
1
|
+
import { type LanguagePlugin } from '@volar/language-core';
|
|
2
2
|
import type { Linter } from 'eslint';
|
|
3
3
|
export declare function createProcessor(languagePlugins: LanguagePlugin<string>[], caseSensitive: boolean, extensionsMap?: Record<string, string>, supportsAutofix?: boolean): Linter.Processor;
|
package/index.js
CHANGED
|
@@ -81,7 +81,10 @@ function createProcessor(languagePlugins, caseSensitive, extensionsMap = {
|
|
|
81
81
|
const embeddedDocument = embeddedDocuments[i];
|
|
82
82
|
messagesArr[i] = messagesArr[i].filter(message => {
|
|
83
83
|
const start = embeddedDocument.offsetAt({ line: message.line - 1, character: message.column - 1 });
|
|
84
|
-
const end = embeddedDocument.offsetAt({
|
|
84
|
+
const end = embeddedDocument.offsetAt({
|
|
85
|
+
line: (message.endLine ?? message.line) - 1,
|
|
86
|
+
character: (message.endColumn ?? message.column) - 1,
|
|
87
|
+
});
|
|
85
88
|
for (const [sourceStart, mapping] of map.toSourceLocation(start)) {
|
|
86
89
|
if ((0, language_core_1.isDiagnosticsEnabled)(mapping.data)) {
|
|
87
90
|
for (const [sourceEnd, mapping] of map.toSourceLocation(end)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/eslint",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.25",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@types/eslint": "^8.56.10",
|
|
16
|
-
"@volar/language-core": "2.4.
|
|
16
|
+
"@volar/language-core": "2.4.25",
|
|
17
17
|
"vscode-languageserver-textdocument": "^1.0.11"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "cff5cbf8cfe438e27b2ccbc15248937308ff21a7"
|
|
20
20
|
}
|