Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Linting

Andrew Bastin062dd4f88953
diff --git a/components/collections/ImportExport.vue b/components/collections/ImportExport.vue
index 2fbad2ef0..e5f2ced8a 100644
--- a/components/collections/ImportExport.vue
+++ b/components/collections/ImportExport.vue
@@ -196,7 +196,7 @@ export default {
mode: "import_export",
mySelectedCollectionID: undefined,
collectionJson: "",
- fb
+ fb,
}
},
subscriptions() {
diff --git a/components/collections/SaveRequest.vue b/components/collections/SaveRequest.vue
index 02b6166c9..1b06cca67 100644
--- a/components/collections/SaveRequest.vue
+++ b/components/collections/SaveRequest.vue
@@ -58,7 +58,12 @@
<script>
import { getSettingSubject } from "~/newstore/settings"
import * as teamUtils from "~/helpers/teams/utils"
-import { saveRESTRequestAs, editRESTRequest, editGraphqlRequest, saveGraphqlRequestAs } from "~/newstore/collections"
+import {
+ saveRESTRequestAs,
+ editRESTRequest,
+ editGraphqlRequest,
+ saveGraphqlRequestAs,
+} from "~/newstore/collections"
export default {
props: {
@@ -204,7 +209,11 @@ export default {
this.picked.collectionID
)
} else if (this.picked.pickedType === "gql-my-request") {
- editGraphqlRequest(this.picked.folderPath, this.picked.requestIndex, requestUpdated)
+ editGraphqlRequest(
+ this.picked.folderPath,
+ this.picked.requestIndex,
+ requestUpdated
+ )
} else if (this.picked.pickedType === "gql-my-folder") {
saveGraphqlRequestAs(this.picked.folderPath, requestUpdated)
} else if (this.picked.pickedType === "gql-my-collection") {
diff --git a/components/collections/graphql/Collection.vue b/components/collections/graphql/Collection.vue
index db406c8dc..ed6345c55 100644
--- a/components/collections/graphql/Collection.vue
+++ b/components/collections/graphql/Collection.vue
@@ -170,18 +170,20 @@ export default Vue.extend({
},
computed: {
isSelected(): boolean {
- return this.picked &&
+ return (
+ this.picked &&
this.picked.pickedType === "gql-my-collection" &&
this.picked.collectionIndex === this.collectionIndex
- }
+ )
+ },
},
methods: {
pick() {
this.$emit("select", {
picked: {
pickedType: "gql-my-collection",
- collectionIndex: this.collectionIndex
- }
+ collectionIndex: this.collectionIndex,
+ },
})
},
toggleShowChildren() {
diff --git a/components/collections/graphql/Folder.vue b/components/collections/graphql/Folder.vue
index 2e7329753..f1962dd38 100644
--- a/components/collections/graphql/Folder.vue
+++ b/components/collections/graphql/Folder.vue
@@ -156,18 +156,20 @@ export default Vue.extend({
},
computed: {
isSelected(): boolean {
- return this.picked &&
- this.picked.pickedType === "gql-my-folder" &&
+ return (
+ this.picked &&
+ this.picked.pickedType === "gql-my-folder" &&
this.picked.folderPath === this.folderPath
- }
+ )
+ },
},
methods: {
pick() {
- this.$emit('select', {
+ this.$emit("select", {
picked: {
pickedType: "gql-my-folder",
- folderPath: this.folderPath
- }
+ folderPath: this.folderPath,
+ },
})
},
toggleShowChildren() {
diff --git a/components/collections/graphql/Request.vue b/components/collections/graphql/Request.vue
index 6b6fc04df..b2ce197e1 100644
--- a/components/collections/graphql/Request.vue
+++ b/components/collections/graphql/Request.vue
@@ -17,7 +17,6 @@
class="icon"
@click="!doc ? selectRequest() : {}"
>
-
<i v-if="isSelected" class="mx-3 text-green-400 material-icons"
>check_circle</i
>
@@ -88,20 +87,22 @@ export default Vue.extend({
},
computed: {
isSelected(): boolean {
- return this.picked &&
+ return (
+ this.picked &&
this.picked.pickedType === "gql-my-request" &&
this.picked.folderPath === this.folderPath &&
this.picked.requestIndex === this.requestIndex
- }
+ )
+ },
},
methods: {
pick() {
- this.$emit('select', {
+ this.$emit("select", {
picked: {
pickedType: "gql-my-request",
folderPath: this.folderPath,
- requestIndex: this.requestIndex
- }
+ requestIndex: this.requestIndex,
+ },
})
},
selectRequest() {
diff --git a/components/collections/graphql/index.vue b/components/collections/graphql/index.vue
index 1eef03217..899a963c1 100644
--- a/components/collections/graphql/index.vue
+++ b/components/collections/graphql/index.vue
@@ -50,11 +50,19 @@
@hide-modal="displayModalImportExport(false)"
/>
<div class="border-b row-wrapper border-brdColor">
- <button v-if="showCollActions" class="icon" @click="displayModalAdd(true)">
+ <button
+ v-if="showCollActions"
+ class="icon"
+ @click="displayModalAdd(true)"
+ >
<i class="material-icons">add</i>
<span>{{ $t("new") }}</span>
</button>
- <button v-if="showCollActions" class="icon" @click="displayModalImportExport(true)">
+ <button
+ v-if="showCollActions"
+ class="icon"
+ @click="displayModalImportExport(true)"
+ >
{{ $t("import_export") }}
</button>
</div>
@@ -104,7 +112,7 @@ export default {
doc: { type: Boolean, default: false },
picked: { type: Object, default: null },
// Whether to show the 'New' and 'Import/Export' actions
- showCollActions: { type: Boolean, default: true }
+ showCollActions: { type: Boolean, default: true },
},
data() {
return {