We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fac163 commit f84c6adCopy full SHA for f84c6ad
prompts/eslint/scripts/remap_lint.sh
@@ -34,6 +34,8 @@ for index in "${!FILE_PATHS[@]}"; do
34
message_parsed=$(echo $message | jq -r -c 'if .endLine == null then .endLine = .line end')
35
# If endColumn is null, set it to convert column to number and add 1
36
message_parsed=$(echo $message_parsed | jq -r -c 'if .endColumn == null then .endColumn = (.column | tonumber + 1) end')
37
+ # If severity is null, set it to "error"
38
+ message_parsed=$(echo $message_parsed | jq -r -c 'if .severity == null then .severity = "error" end')
39
COMPLAINT=$(echo $message_parsed | jq -r -c --arg file_path $file_path '{filePath: $file_path, start: [.line, .column], end: [.endLine, .endColumn], message: .message, severity: .severity, ruleId: .ruleId}')
40
echo $COMPLAINT
41
done
0 commit comments