mirror of https://github.com/astral-sh/ruff
Fix `eslint` errors for playground source code (#12207)
Refer https://github.com/astral-sh/ruff/actions/runs/9808907924/job/27086333001
This commit is contained in:
parent
3a72400202
commit
7b50061b43
|
|
@ -39,7 +39,9 @@ export default function SourceEditor({
|
||||||
startColumn: diagnostic.location.column,
|
startColumn: diagnostic.location.column,
|
||||||
endLineNumber: diagnostic.end_location.row,
|
endLineNumber: diagnostic.end_location.row,
|
||||||
endColumn: diagnostic.end_location.column,
|
endColumn: diagnostic.end_location.column,
|
||||||
message: diagnostic.code ? `${diagnostic.code}: ${diagnostic.message}` : diagnostic.message,
|
message: diagnostic.code
|
||||||
|
? `${diagnostic.code}: ${diagnostic.message}`
|
||||||
|
: diagnostic.message,
|
||||||
severity: MarkerSeverity.Error,
|
severity: MarkerSeverity.Error,
|
||||||
tags:
|
tags:
|
||||||
diagnostic.code === "F401" || diagnostic.code === "F841"
|
diagnostic.code === "F401" || diagnostic.code === "F841"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue