Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit18abf37

Browse files
committed
fix: avoid parse as script if filePath is not set
1 parent0d34b44 commit18abf37

File tree

4 files changed

+21
-18
lines changed

4 files changed

+21
-18
lines changed

‎explorer-v2/package.json‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@
1212
"preview":"vite preview"
1313
},
1414
"dependencies": {
15-
"@fontsource/fira-mono":"^5.0.0",
16-
"@typescript-eslint/parser":"^6.0.0",
17-
"eslint":"^8.0.0",
18-
"eslint-scope":"^7.0.0",
15+
"@fontsource/fira-mono":"^5.0.8",
16+
"@typescript-eslint/parser":"^6.11.0",
17+
"eslint":"^8.54.0",
18+
"eslint-scope":"^7.2.2",
1919
"esquery":"^1.5.0",
20-
"pako":"^2.0.3",
21-
"svelte":"^5.0.0-next.2",
20+
"pako":"^2.1.0",
21+
"svelte":"^5.0.0-next.8",
2222
"svelte-eslint-parser":"link:..",
23-
"tslib":"^2.5.0"
23+
"tslib":"^2.6.2"
2424
},
2525
"devDependencies": {
26-
"@sveltejs/adapter-static":"^2.0.0",
27-
"@sveltejs/kit":"^1.0.0-next.456",
28-
"prettier":"^3.0.0",
29-
"prettier-plugin-svelte":"^3.0.0",
30-
"string-replace-loader":"^3.0.1",
31-
"typescript":"^5.0.4",
26+
"@sveltejs/adapter-static":"^2.0.3",
27+
"@sveltejs/kit":"^1.27.6",
28+
"prettier":"^3.1.0",
29+
"prettier-plugin-svelte":"^3.1.0",
30+
"string-replace-loader":"^3.1.0",
31+
"typescript":"^5.2.2",
3232
"vite":"^5.0.0",
33-
"webpack":"^5.82.1",
34-
"webpack-cli":"^5.0.0",
35-
"wrapper-webpack-plugin":"^2.1.0"
33+
"webpack":"^5.89.0",
34+
"webpack-cli":"^5.1.4",
35+
"wrapper-webpack-plugin":"^2.2.2"
3636
}
3737
}

‎explorer-v2/src/app.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<htmllang="en">
33
<head>
44
<metacharset="utf-8"/>

‎explorer-v2/src/lib/MonacoEditor.svelte‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
renderValidationDecorations:'on',
9595
renderWhitespace:'boundary',
9696
scrollBeyondLastLine:false,
97+
useInlineViewWhenSpaceIsLimited:false,
9798
...editorOptions
9899
};
99100

‎src/parser/index.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ export function parseForESLint(code: string, options?: any): ParseResult {
8787
if(
8888
svelteVersion.hasRunes&&
8989
parserOptions.filePath&&
90-
!parserOptions.filePath.endsWith(".svelte")
90+
!parserOptions.filePath.endsWith(".svelte")&&
91+
// If no `filePath` is set in ESLint, "<input>" will be specified.
92+
parserOptions.filePath!=="<input>"
9193
){
9294
consttrimmed=code.trim();
9395
if(!trimmed.startsWith("<")&&!trimmed.endsWith(">")){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp