fix: fix test script lint errors
This commit is contained in:
parent
7105e7a86f
commit
dd004c921e
1 changed files with 7 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ import {
|
||||||
getPreRequestScriptCompletions,
|
getPreRequestScriptCompletions,
|
||||||
getTestScriptCompletions,
|
getTestScriptCompletions,
|
||||||
performPreRequestLinting,
|
performPreRequestLinting,
|
||||||
|
performTestLinting,
|
||||||
} from "~/helpers/tern"
|
} from "~/helpers/tern"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -177,7 +178,12 @@ export default {
|
||||||
provideLinting: debounce(function (code) {
|
provideLinting: debounce(function (code) {
|
||||||
let results = []
|
let results = []
|
||||||
|
|
||||||
performPreRequestLinting(code)
|
const lintFunc =
|
||||||
|
this.completeMode === "pre"
|
||||||
|
? performPreRequestLinting
|
||||||
|
: performTestLinting
|
||||||
|
|
||||||
|
lintFunc(code)
|
||||||
.then((semanticLints) => {
|
.then((semanticLints) => {
|
||||||
results = results.concat(
|
results = results.concat(
|
||||||
semanticLints.map((lint) => ({
|
semanticLints.map((lint) => ({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue