feat: linting for raw key value lang editors

This commit is contained in:
Andrew Bastin
2022-02-16 01:37:15 +05:30
parent c3759a400d
commit 4d5a90f14f
4 changed files with 30 additions and 3 deletions

View File

@@ -138,6 +138,7 @@ import {
RawKeyValueEntry,
} from "@hoppscotch/data"
import { useCodemirror } from "~/helpers/editor/codemirror"
import linter from "~/helpers/editor/linting/rawKeyValue"
import { useRESTRequestBody } from "~/newstore/RESTSession"
import { pluckRef, useI18n, useToast } from "~/helpers/utils/composables"
@@ -155,7 +156,7 @@ useCodemirror(bulkEditor, bulkUrlEncodedParams, {
mode: "text/x-yaml",
placeholder: `${t("state.bulk_mode_placeholder")}`,
},
linter: null,
linter,
completer: null,
environmentHighlights: true,
})