🚨 Removing linter warnings

This commit is contained in:
Liyas Thomas
2020-01-24 17:50:30 +05:30
parent 92d8878c38
commit bbaa48c1ec
7 changed files with 22 additions and 27 deletions

View File

@@ -57,7 +57,7 @@ export default {
methods: {
addNewCollection() {
if (!this.$data.name) {
this.$toast.info('Please provide a valid name for the collection')
this.$toast.info("Please provide a valid name for the collection");
return;
}
this.$store.commit("postwoman/addNewCollection", {

View File

@@ -60,7 +60,7 @@ export default {
methods: {
saveCollection() {
if (!this.$data.name) {
this.$toast.info('Please provide a valid name for the collection');
this.$toast.info("Please provide a valid name for the collection");
return;
}
const collectionUpdated = {

View File

@@ -34,7 +34,7 @@ export default {
return {
editor: null,
cacheValue: "",
validationSchema: null
validationSchema: null
};
},
@@ -88,7 +88,7 @@ export default {
);
}
},
setValidationSchema(schema) {
this.validationSchema = schema;
this.parseContents(this.cacheValue);
@@ -101,16 +101,15 @@ export default {
if (this.validationSchema) {
this.editor.session.setAnnotations(
gql.validate(this.validationSchema, doc)
.map((err) => {
return {
row: err.locations[0].line - 1,
column: err.locations[0].column - 1,
text: err.message,
type: "error"
}
})
)
gql.validate(this.validationSchema, doc).map(err => {
return {
row: err.locations[0].line - 1,
column: err.locations[0].column - 1,
text: err.message,
type: "error"
};
})
);
}
} catch (e) {
this.editor.session.setAnnotations([